Skip to content

Commit 95f5d67

Browse files
Merge pull request #472 from HubSpot/codegen/crmObjects
CRM Objects: Codegen.
2 parents 1c52fe4 + ded6c9c commit 95f5d67

File tree

53 files changed

+173
-41
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+173
-41
lines changed

codegen/crm/companies/models/SimplePublicObjectBatchInput.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212

1313

1414
export class SimplePublicObjectBatchInput {
15+
'idProperty'?: string;
1516
'id': string;
1617
'properties': { [key: string]: string; };
1718

1819
static readonly discriminator: string | undefined = undefined;
1920

2021
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22+
{
23+
"name": "idProperty",
24+
"baseName": "idProperty",
25+
"type": "string",
26+
"format": ""
27+
},
2128
{
2229
"name": "id",
2330
"baseName": "id",

codegen/crm/contacts/models/SimplePublicObjectBatchInput.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212

1313

1414
export class SimplePublicObjectBatchInput {
15+
'idProperty'?: string;
1516
'id': string;
1617
'properties': { [key: string]: string; };
1718

1819
static readonly discriminator: string | undefined = undefined;
1920

2021
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22+
{
23+
"name": "idProperty",
24+
"baseName": "idProperty",
25+
"type": "string",
26+
"format": ""
27+
},
2128
{
2229
"name": "id",
2330
"baseName": "id",

codegen/crm/deals/models/SimplePublicObjectBatchInput.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212

1313

1414
export class SimplePublicObjectBatchInput {
15+
'idProperty'?: string;
1516
'id': string;
1617
'properties': { [key: string]: string; };
1718

1819
static readonly discriminator: string | undefined = undefined;
1920

2021
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22+
{
23+
"name": "idProperty",
24+
"baseName": "idProperty",
25+
"type": "string",
26+
"format": ""
27+
},
2128
{
2229
"name": "id",
2330
"baseName": "id",

codegen/crm/line_items/models/SimplePublicObjectBatchInput.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
55
* OpenAPI spec version: v3
6-
*
6+
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
99
* https://openapi-generator.tech
@@ -12,12 +12,19 @@
1212

1313

1414
export class SimplePublicObjectBatchInput {
15+
'idProperty'?: string;
1516
'id': string;
1617
'properties': { [key: string]: string; };
1718

1819
static readonly discriminator: string | undefined = undefined;
1920

2021
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22+
{
23+
"name": "idProperty",
24+
"baseName": "idProperty",
25+
"type": "string",
26+
"format": ""
27+
},
2128
{
2229
"name": "id",
2330
"baseName": "id",

codegen/crm/objects/apis/BatchApi.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class BatchApiRequestFactory extends BaseAPIRequestFactory {
193193
}
194194

195195
/**
196-
* Update a batch of objects
196+
* Update a batch of objects by internal ID, or unique property values
197197
* @param objectType
198198
* @param batchInputSimplePublicObjectBatchInput
199199
*/

codegen/crm/objects/calls/models/SimplePublicObjectBatchInput.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212

1313

1414
export class SimplePublicObjectBatchInput {
15+
'idProperty'?: string;
1516
'id': string;
1617
'properties': { [key: string]: string; };
1718

1819
static readonly discriminator: string | undefined = undefined;
1920

2021
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22+
{
23+
"name": "idProperty",
24+
"baseName": "idProperty",
25+
"type": "string",
26+
"format": ""
27+
},
2128
{
2229
"name": "id",
2330
"baseName": "id",

codegen/crm/objects/communications/models/SimplePublicObjectBatchInput.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212

1313

1414
export class SimplePublicObjectBatchInput {
15+
'idProperty'?: string;
1516
'id': string;
1617
'properties': { [key: string]: string; };
1718

1819
static readonly discriminator: string | undefined = undefined;
1920

2021
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22+
{
23+
"name": "idProperty",
24+
"baseName": "idProperty",
25+
"type": "string",
26+
"format": ""
27+
},
2128
{
2229
"name": "id",
2330
"baseName": "id",

codegen/crm/objects/emails/models/SimplePublicObjectBatchInput.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212

1313

1414
export class SimplePublicObjectBatchInput {
15+
'idProperty'?: string;
1516
'id': string;
1617
'properties': { [key: string]: string; };
1718

1819
static readonly discriminator: string | undefined = undefined;
1920

2021
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22+
{
23+
"name": "idProperty",
24+
"baseName": "idProperty",
25+
"type": "string",
26+
"format": ""
27+
},
2128
{
2229
"name": "id",
2330
"baseName": "id",

codegen/crm/objects/feedback_submissions/models/SimplePublicObjectBatchInput.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212

1313

1414
export class SimplePublicObjectBatchInput {
15+
'idProperty'?: string;
1516
'id': string;
1617
'properties': { [key: string]: string; };
1718

1819
static readonly discriminator: string | undefined = undefined;
1920

2021
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22+
{
23+
"name": "idProperty",
24+
"baseName": "idProperty",
25+
"type": "string",
26+
"format": ""
27+
},
2128
{
2229
"name": "id",
2330
"baseName": "id",

codegen/crm/objects/goals/models/SimplePublicObjectBatchInput.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212

1313

1414
export class SimplePublicObjectBatchInput {
15+
'idProperty'?: string;
1516
'id': string;
1617
'properties': { [key: string]: string; };
1718

1819
static readonly discriminator: string | undefined = undefined;
1920

2021
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22+
{
23+
"name": "idProperty",
24+
"baseName": "idProperty",
25+
"type": "string",
26+
"format": ""
27+
},
2128
{
2229
"name": "id",
2330
"baseName": "id",

codegen/crm/objects/meetings/models/SimplePublicObjectBatchInput.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212

1313

1414
export class SimplePublicObjectBatchInput {
15+
'idProperty'?: string;
1516
'id': string;
1617
'properties': { [key: string]: string; };
1718

1819
static readonly discriminator: string | undefined = undefined;
1920

2021
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
22+
{
23+
"name": "idProperty",
24+
"baseName": "idProperty",
25+
"type": "string",
26+
"format": ""
27+
},
2128
{
2229
"name": "id",
2330
"baseName": "id",

codegen/crm/objects/models/AssociatedId.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Objects
2+
* CRM Objects
33
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
44
*
55
* OpenAPI spec version: v3

codegen/crm/objects/models/AssociationSpec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Objects
2+
* CRM Objects
33
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
44
*
55
* OpenAPI spec version: v3

codegen/crm/objects/models/BatchInputSimplePublicObjectBatchInput.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Objects
2+
* CRM Objects
33
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
44
*
55
* OpenAPI spec version: v3

codegen/crm/objects/models/BatchInputSimplePublicObjectId.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Objects
2+
* CRM Objects
33
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
44
*
55
* OpenAPI spec version: v3

codegen/crm/objects/models/BatchInputSimplePublicObjectInputForCreate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Objects
2+
* CRM Objects
33
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
44
*
55
* OpenAPI spec version: v3

codegen/crm/objects/models/BatchReadInputSimplePublicObjectId.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Objects
2+
* CRM Objects
33
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
44
*
55
* OpenAPI spec version: v3

codegen/crm/objects/models/BatchResponseSimplePublicObject.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Objects
2+
* CRM Objects
33
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
44
*
55
* OpenAPI spec version: v3

codegen/crm/objects/models/BatchResponseSimplePublicObjectWithErrors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Objects
2+
* CRM Objects
33
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
44
*
55
* OpenAPI spec version: v3

codegen/crm/objects/models/CollectionResponseAssociatedId.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Objects
2+
* CRM Objects
33
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
44
*
55
* OpenAPI spec version: v3

codegen/crm/objects/models/CollectionResponseSimplePublicObjectWithAssociationsForwardPaging.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Objects
2+
* CRM Objects
33
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
44
*
55
* OpenAPI spec version: v3

0 commit comments

Comments
 (0)