@equisoft/equisoft-connect-sdk-typescript 13.36.0 → 13.38.1-snapshot.20251118234338

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/.tool-versions +1 -1
  3. package/dist/apis/ContactsApi.d.ts +13 -1
  4. package/dist/apis/ContactsApi.js +41 -0
  5. package/dist/esm/apis/ContactsApi.d.ts +13 -1
  6. package/dist/esm/apis/ContactsApi.js +42 -1
  7. package/dist/esm/models/ContactsAdditionalInformation.d.ts +1 -1
  8. package/dist/esm/models/ContactsCreateAdditionalInformationPayload.d.ts +148 -0
  9. package/dist/esm/models/ContactsCreateAdditionalInformationPayload.js +81 -0
  10. package/dist/esm/models/ContactsCreateAddressPayload.d.ts +86 -0
  11. package/dist/esm/models/ContactsCreateAddressPayload.js +61 -0
  12. package/dist/esm/models/ContactsCreateContactPayload.d.ts +94 -0
  13. package/dist/esm/models/ContactsCreateContactPayload.js +69 -0
  14. package/dist/esm/models/ContactsCreateEmailPayload.d.ts +50 -0
  15. package/dist/esm/models/ContactsCreateEmailPayload.js +49 -0
  16. package/dist/esm/models/ContactsCreateIdentificationPayload.d.ts +27 -0
  17. package/dist/esm/models/ContactsCreateIdentificationPayload.js +47 -0
  18. package/dist/esm/models/ContactsCreateIndividualIdentificationPayload.d.ts +94 -0
  19. package/dist/esm/models/ContactsCreateIndividualIdentificationPayload.js +70 -0
  20. package/dist/esm/models/ContactsCreateOccupationPayload.d.ts +56 -0
  21. package/dist/esm/models/ContactsCreateOccupationPayload.js +49 -0
  22. package/dist/esm/models/ContactsCreateOrganizationIdentificationPayload.d.ts +51 -0
  23. package/dist/esm/models/ContactsCreateOrganizationIdentificationPayload.js +54 -0
  24. package/dist/esm/models/ContactsCreatePhonePayload.d.ts +62 -0
  25. package/dist/esm/models/ContactsCreatePhonePayload.js +53 -0
  26. package/dist/esm/models/ContactsCreateRegistrationNumbersPayload.d.ts +44 -0
  27. package/dist/esm/models/ContactsCreateRegistrationNumbersPayload.js +45 -0
  28. package/dist/esm/models/ContactsCreateRevenuePayload.d.ts +38 -0
  29. package/dist/esm/models/ContactsCreateRevenuePayload.js +43 -0
  30. package/dist/esm/models/ContactsCreateSegmentationPayload.d.ts +111 -0
  31. package/dist/esm/models/ContactsCreateSegmentationPayload.js +67 -0
  32. package/dist/esm/models/ContactsCreateWebsitePayload.d.ts +44 -0
  33. package/dist/esm/models/ContactsCreateWebsitePayload.js +47 -0
  34. package/dist/esm/models/ContactsListContactResponse.d.ts +6 -0
  35. package/dist/esm/models/ContactsListContactResponse.js +2 -0
  36. package/dist/esm/models/ContactsSegmentation.d.ts +13 -1
  37. package/dist/esm/models/ContactsSegmentation.js +7 -3
  38. package/dist/esm/models/index.d.ts +13 -0
  39. package/dist/esm/models/index.js +13 -0
  40. package/dist/models/ContactsAdditionalInformation.d.ts +1 -1
  41. package/dist/models/ContactsCreateAdditionalInformationPayload.d.ts +148 -0
  42. package/dist/models/ContactsCreateAdditionalInformationPayload.js +88 -0
  43. package/dist/models/ContactsCreateAddressPayload.d.ts +86 -0
  44. package/dist/models/ContactsCreateAddressPayload.js +68 -0
  45. package/dist/models/ContactsCreateContactPayload.d.ts +94 -0
  46. package/dist/models/ContactsCreateContactPayload.js +76 -0
  47. package/dist/models/ContactsCreateEmailPayload.d.ts +50 -0
  48. package/dist/models/ContactsCreateEmailPayload.js +56 -0
  49. package/dist/models/ContactsCreateIdentificationPayload.d.ts +27 -0
  50. package/dist/models/ContactsCreateIdentificationPayload.js +53 -0
  51. package/dist/models/ContactsCreateIndividualIdentificationPayload.d.ts +94 -0
  52. package/dist/models/ContactsCreateIndividualIdentificationPayload.js +77 -0
  53. package/dist/models/ContactsCreateOccupationPayload.d.ts +56 -0
  54. package/dist/models/ContactsCreateOccupationPayload.js +56 -0
  55. package/dist/models/ContactsCreateOrganizationIdentificationPayload.d.ts +51 -0
  56. package/dist/models/ContactsCreateOrganizationIdentificationPayload.js +61 -0
  57. package/dist/models/ContactsCreatePhonePayload.d.ts +62 -0
  58. package/dist/models/ContactsCreatePhonePayload.js +60 -0
  59. package/dist/models/ContactsCreateRegistrationNumbersPayload.d.ts +44 -0
  60. package/dist/models/ContactsCreateRegistrationNumbersPayload.js +52 -0
  61. package/dist/models/ContactsCreateRevenuePayload.d.ts +38 -0
  62. package/dist/models/ContactsCreateRevenuePayload.js +50 -0
  63. package/dist/models/ContactsCreateSegmentationPayload.d.ts +111 -0
  64. package/dist/models/ContactsCreateSegmentationPayload.js +74 -0
  65. package/dist/models/ContactsCreateWebsitePayload.d.ts +44 -0
  66. package/dist/models/ContactsCreateWebsitePayload.js +54 -0
  67. package/dist/models/ContactsListContactResponse.d.ts +6 -0
  68. package/dist/models/ContactsListContactResponse.js +2 -0
  69. package/dist/models/ContactsSegmentation.d.ts +13 -1
  70. package/dist/models/ContactsSegmentation.js +7 -3
  71. package/dist/models/index.d.ts +13 -0
  72. package/dist/models/index.js +13 -0
  73. package/package.json +1 -1
  74. package/src/apis/ContactsApi.ts +60 -0
  75. package/src/models/ContactsAdditionalInformation.ts +1 -1
  76. package/src/models/ContactsCreateAdditionalInformationPayload.ts +232 -0
  77. package/src/models/ContactsCreateAddressPayload.ts +138 -0
  78. package/src/models/ContactsCreateContactPayload.ts +195 -0
  79. package/src/models/ContactsCreateEmailPayload.ts +90 -0
  80. package/src/models/ContactsCreateIdentificationPayload.ts +73 -0
  81. package/src/models/ContactsCreateIndividualIdentificationPayload.ts +160 -0
  82. package/src/models/ContactsCreateOccupationPayload.ts +97 -0
  83. package/src/models/ContactsCreateOrganizationIdentificationPayload.ts +102 -0
  84. package/src/models/ContactsCreatePhonePayload.ts +106 -0
  85. package/src/models/ContactsCreateRegistrationNumbersPayload.ts +81 -0
  86. package/src/models/ContactsCreateRevenuePayload.ts +73 -0
  87. package/src/models/ContactsCreateSegmentationPayload.ts +170 -0
  88. package/src/models/ContactsCreateWebsitePayload.ts +82 -0
  89. package/src/models/ContactsListContactResponse.ts +8 -0
  90. package/src/models/ContactsSegmentation.ts +20 -4
  91. package/src/models/index.ts +13 -0
@@ -45,6 +45,19 @@ src/models/ContactsAddress.ts
45
45
  src/models/ContactsCivilStatus.ts
46
46
  src/models/ContactsContact.ts
47
47
  src/models/ContactsContactFieldValue.ts
48
+ src/models/ContactsCreateAdditionalInformationPayload.ts
49
+ src/models/ContactsCreateAddressPayload.ts
50
+ src/models/ContactsCreateContactPayload.ts
51
+ src/models/ContactsCreateEmailPayload.ts
52
+ src/models/ContactsCreateIdentificationPayload.ts
53
+ src/models/ContactsCreateIndividualIdentificationPayload.ts
54
+ src/models/ContactsCreateOccupationPayload.ts
55
+ src/models/ContactsCreateOrganizationIdentificationPayload.ts
56
+ src/models/ContactsCreatePhonePayload.ts
57
+ src/models/ContactsCreateRegistrationNumbersPayload.ts
58
+ src/models/ContactsCreateRevenuePayload.ts
59
+ src/models/ContactsCreateSegmentationPayload.ts
60
+ src/models/ContactsCreateWebsitePayload.ts
48
61
  src/models/ContactsEmail.ts
49
62
  src/models/ContactsIdentification.ts
50
63
  src/models/ContactsIndividualIdentification.ts
package/.tool-versions CHANGED
@@ -1,3 +1,3 @@
1
1
  java temurin-21.0.8+9.0.LTS
2
- nodejs 22.19.0
2
+ nodejs 22.21.1
3
3
  yarn 1.22.4
@@ -10,7 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ContactPatchContactPayload, ContactsContact, ContactsLegacyContact, ContactsListContactResponse, DocumentsListDocumentResponse, InvestmentsListAccountResponse } from '../models/index';
13
+ import type { ContactPatchContactPayload, ContactsContact, ContactsCreateContactPayload, ContactsLegacyContact, ContactsListContactResponse, ContactsTemporaryContact, DocumentsListDocumentResponse, InvestmentsListAccountResponse } from '../models/index';
14
+ export interface CreateContactRequest {
15
+ contactsCreateContactPayload: ContactsCreateContactPayload;
16
+ }
14
17
  export interface GetByUuidRequest {
15
18
  contactUuid: string;
16
19
  acceptLanguage?: string;
@@ -39,6 +42,7 @@ export interface ListContactRequest {
39
42
  anniversaryEndDate?: Date;
40
43
  pageToken?: string;
41
44
  maxResults?: string;
45
+ withCount?: boolean;
42
46
  }
43
47
  export interface ListContactDocumentRequest {
44
48
  contactUuid: string;
@@ -58,6 +62,14 @@ export interface PatchContactRequest {
58
62
  *
59
63
  */
60
64
  export declare class ContactsApi extends runtime.BaseAPI {
65
+ /**
66
+ * Create a contact
67
+ */
68
+ createContactRaw(requestParameters: CreateContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContactsTemporaryContact>>;
69
+ /**
70
+ * Create a contact
71
+ */
72
+ createContact(requestParameters: CreateContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContactsTemporaryContact>;
61
73
  /**
62
74
  * Get contact by Uuid
63
75
  */
@@ -29,6 +29,44 @@ const index_1 = require("../models/index");
29
29
  *
30
30
  */
31
31
  class ContactsApi extends runtime.BaseAPI {
32
+ /**
33
+ * Create a contact
34
+ */
35
+ createContactRaw(requestParameters, initOverrides) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['contactsCreateContactPayload'] == null) {
38
+ throw new runtime.RequiredError('contactsCreateContactPayload', 'Required parameter "contactsCreateContactPayload" was null or undefined when calling createContact().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ headerParameters['Content-Type'] = 'application/json';
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ // oauth required
45
+ const token = this.configuration.accessToken;
46
+ const tokenString = yield token("OAuth2", ["crm:contact"]);
47
+ if (tokenString) {
48
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
49
+ }
50
+ }
51
+ const response = yield this.request({
52
+ path: `/crm/api/v1/contacts`,
53
+ method: 'POST',
54
+ headers: headerParameters,
55
+ query: queryParameters,
56
+ body: (0, index_1.ContactsCreateContactPayloadToJSON)(requestParameters['contactsCreateContactPayload']),
57
+ }, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ContactsTemporaryContactFromJSON)(jsonValue));
59
+ });
60
+ }
61
+ /**
62
+ * Create a contact
63
+ */
64
+ createContact(requestParameters, initOverrides) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const response = yield this.createContactRaw(requestParameters, initOverrides);
67
+ return yield response.value();
68
+ });
69
+ }
32
70
  /**
33
71
  * Get contact by Uuid
34
72
  */
@@ -143,6 +181,9 @@ class ContactsApi extends runtime.BaseAPI {
143
181
  if (requestParameters['maxResults'] != null) {
144
182
  queryParameters['maxResults'] = requestParameters['maxResults'];
145
183
  }
184
+ if (requestParameters['withCount'] != null) {
185
+ queryParameters['withCount'] = requestParameters['withCount'];
186
+ }
146
187
  const headerParameters = {};
147
188
  if (this.configuration && this.configuration.accessToken) {
148
189
  // oauth required
@@ -10,7 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ContactPatchContactPayload, ContactsContact, ContactsLegacyContact, ContactsListContactResponse, DocumentsListDocumentResponse, InvestmentsListAccountResponse } from '../models/index';
13
+ import type { ContactPatchContactPayload, ContactsContact, ContactsCreateContactPayload, ContactsLegacyContact, ContactsListContactResponse, ContactsTemporaryContact, DocumentsListDocumentResponse, InvestmentsListAccountResponse } from '../models/index';
14
+ export interface CreateContactRequest {
15
+ contactsCreateContactPayload: ContactsCreateContactPayload;
16
+ }
14
17
  export interface GetByUuidRequest {
15
18
  contactUuid: string;
16
19
  acceptLanguage?: string;
@@ -39,6 +42,7 @@ export interface ListContactRequest {
39
42
  anniversaryEndDate?: Date;
40
43
  pageToken?: string;
41
44
  maxResults?: string;
45
+ withCount?: boolean;
42
46
  }
43
47
  export interface ListContactDocumentRequest {
44
48
  contactUuid: string;
@@ -58,6 +62,14 @@ export interface PatchContactRequest {
58
62
  *
59
63
  */
60
64
  export declare class ContactsApi extends runtime.BaseAPI {
65
+ /**
66
+ * Create a contact
67
+ */
68
+ createContactRaw(requestParameters: CreateContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContactsTemporaryContact>>;
69
+ /**
70
+ * Create a contact
71
+ */
72
+ createContact(requestParameters: CreateContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContactsTemporaryContact>;
61
73
  /**
62
74
  * Get contact by Uuid
63
75
  */
@@ -21,11 +21,49 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ContactPatchContactPayloadToJSON, ContactsContactFromJSON, ContactsLegacyContactFromJSON, ContactsListContactResponseFromJSON, DocumentsListDocumentResponseFromJSON, InvestmentsListAccountResponseFromJSON, } from '../models/index';
24
+ import { ContactPatchContactPayloadToJSON, ContactsContactFromJSON, ContactsCreateContactPayloadToJSON, ContactsLegacyContactFromJSON, ContactsListContactResponseFromJSON, ContactsTemporaryContactFromJSON, DocumentsListDocumentResponseFromJSON, InvestmentsListAccountResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class ContactsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Create a contact
31
+ */
32
+ createContactRaw(requestParameters, initOverrides) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['contactsCreateContactPayload'] == null) {
35
+ throw new runtime.RequiredError('contactsCreateContactPayload', 'Required parameter "contactsCreateContactPayload" was null or undefined when calling createContact().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ headerParameters['Content-Type'] = 'application/json';
40
+ if (this.configuration && this.configuration.accessToken) {
41
+ // oauth required
42
+ const token = this.configuration.accessToken;
43
+ const tokenString = yield token("OAuth2", ["crm:contact"]);
44
+ if (tokenString) {
45
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
46
+ }
47
+ }
48
+ const response = yield this.request({
49
+ path: `/crm/api/v1/contacts`,
50
+ method: 'POST',
51
+ headers: headerParameters,
52
+ query: queryParameters,
53
+ body: ContactsCreateContactPayloadToJSON(requestParameters['contactsCreateContactPayload']),
54
+ }, initOverrides);
55
+ return new runtime.JSONApiResponse(response, (jsonValue) => ContactsTemporaryContactFromJSON(jsonValue));
56
+ });
57
+ }
58
+ /**
59
+ * Create a contact
60
+ */
61
+ createContact(requestParameters, initOverrides) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const response = yield this.createContactRaw(requestParameters, initOverrides);
64
+ return yield response.value();
65
+ });
66
+ }
29
67
  /**
30
68
  * Get contact by Uuid
31
69
  */
@@ -140,6 +178,9 @@ export class ContactsApi extends runtime.BaseAPI {
140
178
  if (requestParameters['maxResults'] != null) {
141
179
  queryParameters['maxResults'] = requestParameters['maxResults'];
142
180
  }
181
+ if (requestParameters['withCount'] != null) {
182
+ queryParameters['withCount'] = requestParameters['withCount'];
183
+ }
143
184
  const headerParameters = {};
144
185
  if (this.configuration && this.configuration.accessToken) {
145
186
  // oauth required
@@ -23,7 +23,7 @@ export interface ContactsAdditionalInformation {
23
23
  * @type {boolean}
24
24
  * @memberof ContactsAdditionalInformation
25
25
  */
26
- isDeceased?: boolean;
26
+ isDeceased?: boolean | null;
27
27
  /**
28
28
  *
29
29
  * @type {Date}
@@ -0,0 +1,148 @@
1
+ /**
2
+ * Equisoft /connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ContactsCreateRegistrationNumbersPayload } from './ContactsCreateRegistrationNumbersPayload';
13
+ import type { ContactsCreateRevenuePayload } from './ContactsCreateRevenuePayload';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ContactsCreateAdditionalInformationPayload
18
+ */
19
+ export interface ContactsCreateAdditionalInformationPayload {
20
+ /**
21
+ *
22
+ * @type {boolean}
23
+ * @memberof ContactsCreateAdditionalInformationPayload
24
+ */
25
+ isDeceased?: boolean;
26
+ /**
27
+ *
28
+ * @type {Date}
29
+ * @memberof ContactsCreateAdditionalInformationPayload
30
+ */
31
+ deceasedDate?: Date | null;
32
+ /**
33
+ *
34
+ * @type {boolean}
35
+ * @memberof ContactsCreateAdditionalInformationPayload
36
+ */
37
+ isSmoker?: boolean;
38
+ /**
39
+ *
40
+ * @type {Date}
41
+ * @memberof ContactsCreateAdditionalInformationPayload
42
+ */
43
+ smokerEndDate?: Date | null;
44
+ /**
45
+ *
46
+ * @type {Date}
47
+ * @memberof ContactsCreateAdditionalInformationPayload
48
+ */
49
+ birthDate?: Date | null;
50
+ /**
51
+ * Refer to the values provided by the FieldValue endpoint with fieldName CONTACT_LANG.
52
+ * @type {number}
53
+ * @memberof ContactsCreateAdditionalInformationPayload
54
+ */
55
+ language?: number | null;
56
+ /**
57
+ *
58
+ * @type {Date}
59
+ * @memberof ContactsCreateAdditionalInformationPayload
60
+ */
61
+ organizationDateCreated?: Date | null;
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof ContactsCreateAdditionalInformationPayload
66
+ */
67
+ organizationDateClosed?: Date | null;
68
+ /**
69
+ * Refer to the values provided by the FieldValue endpoint with fieldName ORG_NB_EMPLOYEE.
70
+ * @type {number}
71
+ * @memberof ContactsCreateAdditionalInformationPayload
72
+ */
73
+ numberOfEmployees?: number | null;
74
+ /**
75
+ * Refer to the values provided by the FieldValue endpoint with fieldName ORG_COMPANY_VALUE.
76
+ * @type {number}
77
+ * @memberof ContactsCreateAdditionalInformationPayload
78
+ */
79
+ companyValue?: number | null;
80
+ /**
81
+ * Refer to the values provided by the FieldValue endpoint with fieldName ORG_ANNUAL_GROWTH.
82
+ * @type {number}
83
+ * @memberof ContactsCreateAdditionalInformationPayload
84
+ */
85
+ annualGrowth?: number | null;
86
+ /**
87
+ * Refer to the values provided by the FieldValue endpoint with fieldName ORG_COMPANY_STAGE.
88
+ * @type {number}
89
+ * @memberof ContactsCreateAdditionalInformationPayload
90
+ */
91
+ companyStage?: number | null;
92
+ /**
93
+ *
94
+ * @type {ContactsCreateRevenuePayload}
95
+ * @memberof ContactsCreateAdditionalInformationPayload
96
+ */
97
+ revenue?: ContactsCreateRevenuePayload | null;
98
+ /**
99
+ * Refer to the values provided by the FieldValue endpoint with fieldName ORG_NET_PROFIT.
100
+ * @type {number}
101
+ * @memberof ContactsCreateAdditionalInformationPayload
102
+ */
103
+ netProfits?: number | null;
104
+ /**
105
+ * Refer to the values provided by the FieldValue endpoint with fieldName ORG_INCORPORATION_LOCATION.
106
+ * @type {number}
107
+ * @memberof ContactsCreateAdditionalInformationPayload
108
+ */
109
+ incorporationLocation?: number | null;
110
+ /**
111
+ * Refer to the values provided by the FieldValue endpoint with fieldName ORG_PAYROLL.
112
+ * @type {number}
113
+ * @memberof ContactsCreateAdditionalInformationPayload
114
+ */
115
+ payroll?: number | null;
116
+ /**
117
+ * Only support full month name in English in uppercase (JANUARY, FEBRUARY, etc.)
118
+ * @type {string}
119
+ * @memberof ContactsCreateAdditionalInformationPayload
120
+ */
121
+ endOfFinancialYear?: string | null;
122
+ /**
123
+ *
124
+ * @type {ContactsCreateRegistrationNumbersPayload}
125
+ * @memberof ContactsCreateAdditionalInformationPayload
126
+ */
127
+ registrationNumbers?: ContactsCreateRegistrationNumbersPayload | null;
128
+ /**
129
+ *
130
+ * @type {Date}
131
+ * @memberof ContactsCreateAdditionalInformationPayload
132
+ */
133
+ knownSince?: Date | null;
134
+ /**
135
+ *
136
+ * @type {Date}
137
+ * @memberof ContactsCreateAdditionalInformationPayload
138
+ */
139
+ endDate?: Date | null;
140
+ }
141
+ /**
142
+ * Check if a given object implements the ContactsCreateAdditionalInformationPayload interface.
143
+ */
144
+ export declare function instanceOfContactsCreateAdditionalInformationPayload(value: object): value is ContactsCreateAdditionalInformationPayload;
145
+ export declare function ContactsCreateAdditionalInformationPayloadFromJSON(json: any): ContactsCreateAdditionalInformationPayload;
146
+ export declare function ContactsCreateAdditionalInformationPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactsCreateAdditionalInformationPayload;
147
+ export declare function ContactsCreateAdditionalInformationPayloadToJSON(json: any): ContactsCreateAdditionalInformationPayload;
148
+ export declare function ContactsCreateAdditionalInformationPayloadToJSONTyped(value?: ContactsCreateAdditionalInformationPayload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Equisoft /connect API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ContactsCreateRegistrationNumbersPayloadFromJSON, ContactsCreateRegistrationNumbersPayloadToJSON, } from './ContactsCreateRegistrationNumbersPayload';
15
+ import { ContactsCreateRevenuePayloadFromJSON, ContactsCreateRevenuePayloadToJSON, } from './ContactsCreateRevenuePayload';
16
+ /**
17
+ * Check if a given object implements the ContactsCreateAdditionalInformationPayload interface.
18
+ */
19
+ export function instanceOfContactsCreateAdditionalInformationPayload(value) {
20
+ return true;
21
+ }
22
+ export function ContactsCreateAdditionalInformationPayloadFromJSON(json) {
23
+ return ContactsCreateAdditionalInformationPayloadFromJSONTyped(json, false);
24
+ }
25
+ export function ContactsCreateAdditionalInformationPayloadFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'isDeceased': json['isDeceased'] == null ? undefined : json['isDeceased'],
31
+ 'deceasedDate': json['deceasedDate'] == null ? undefined : (new Date(json['deceasedDate'])),
32
+ 'isSmoker': json['isSmoker'] == null ? undefined : json['isSmoker'],
33
+ 'smokerEndDate': json['smokerEndDate'] == null ? undefined : (new Date(json['smokerEndDate'])),
34
+ 'birthDate': json['birthDate'] == null ? undefined : (new Date(json['birthDate'])),
35
+ 'language': json['language'] == null ? undefined : json['language'],
36
+ 'organizationDateCreated': json['organizationDateCreated'] == null ? undefined : (new Date(json['organizationDateCreated'])),
37
+ 'organizationDateClosed': json['organizationDateClosed'] == null ? undefined : (new Date(json['organizationDateClosed'])),
38
+ 'numberOfEmployees': json['numberOfEmployees'] == null ? undefined : json['numberOfEmployees'],
39
+ 'companyValue': json['companyValue'] == null ? undefined : json['companyValue'],
40
+ 'annualGrowth': json['annualGrowth'] == null ? undefined : json['annualGrowth'],
41
+ 'companyStage': json['companyStage'] == null ? undefined : json['companyStage'],
42
+ 'revenue': json['revenue'] == null ? undefined : ContactsCreateRevenuePayloadFromJSON(json['revenue']),
43
+ 'netProfits': json['netProfits'] == null ? undefined : json['netProfits'],
44
+ 'incorporationLocation': json['incorporationLocation'] == null ? undefined : json['incorporationLocation'],
45
+ 'payroll': json['payroll'] == null ? undefined : json['payroll'],
46
+ 'endOfFinancialYear': json['endOfFinancialYear'] == null ? undefined : json['endOfFinancialYear'],
47
+ 'registrationNumbers': json['registrationNumbers'] == null ? undefined : ContactsCreateRegistrationNumbersPayloadFromJSON(json['registrationNumbers']),
48
+ 'knownSince': json['knownSince'] == null ? undefined : (new Date(json['knownSince'])),
49
+ 'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
50
+ };
51
+ }
52
+ export function ContactsCreateAdditionalInformationPayloadToJSON(json) {
53
+ return ContactsCreateAdditionalInformationPayloadToJSONTyped(json, false);
54
+ }
55
+ export function ContactsCreateAdditionalInformationPayloadToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'isDeceased': value['isDeceased'],
61
+ 'deceasedDate': value['deceasedDate'] == null ? undefined : (value['deceasedDate'].toISOString().substring(0, 10)),
62
+ 'isSmoker': value['isSmoker'],
63
+ 'smokerEndDate': value['smokerEndDate'] == null ? undefined : (value['smokerEndDate'].toISOString().substring(0, 10)),
64
+ 'birthDate': value['birthDate'] == null ? undefined : (value['birthDate'].toISOString().substring(0, 10)),
65
+ 'language': value['language'],
66
+ 'organizationDateCreated': value['organizationDateCreated'] == null ? undefined : (value['organizationDateCreated'].toISOString().substring(0, 10)),
67
+ 'organizationDateClosed': value['organizationDateClosed'] == null ? undefined : (value['organizationDateClosed'].toISOString().substring(0, 10)),
68
+ 'numberOfEmployees': value['numberOfEmployees'],
69
+ 'companyValue': value['companyValue'],
70
+ 'annualGrowth': value['annualGrowth'],
71
+ 'companyStage': value['companyStage'],
72
+ 'revenue': ContactsCreateRevenuePayloadToJSON(value['revenue']),
73
+ 'netProfits': value['netProfits'],
74
+ 'incorporationLocation': value['incorporationLocation'],
75
+ 'payroll': value['payroll'],
76
+ 'endOfFinancialYear': value['endOfFinancialYear'],
77
+ 'registrationNumbers': ContactsCreateRegistrationNumbersPayloadToJSON(value['registrationNumbers']),
78
+ 'knownSince': value['knownSince'] == null ? undefined : (value['knownSince'].toISOString().substring(0, 10)),
79
+ 'endDate': value['endDate'] == null ? undefined : (value['endDate'].toISOString().substring(0, 10)),
80
+ };
81
+ }
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Equisoft /connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ContactsCreateAddressPayload
16
+ */
17
+ export interface ContactsCreateAddressPayload {
18
+ /**
19
+ * Refer to the values provided by the FieldValue endpoint with fieldName ADDRESS_TYPE.
20
+ * @type {number}
21
+ * @memberof ContactsCreateAddressPayload
22
+ */
23
+ type: number;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof ContactsCreateAddressPayload
28
+ */
29
+ isMain?: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ContactsCreateAddressPayload
34
+ */
35
+ isPostal?: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ContactsCreateAddressPayload
40
+ */
41
+ line1?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ContactsCreateAddressPayload
46
+ */
47
+ line2?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ContactsCreateAddressPayload
52
+ */
53
+ city?: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof ContactsCreateAddressPayload
58
+ */
59
+ stateProvince?: string | null;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof ContactsCreateAddressPayload
64
+ */
65
+ country?: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof ContactsCreateAddressPayload
70
+ */
71
+ postalCode?: string | null;
72
+ /**
73
+ *
74
+ * @type {Date}
75
+ * @memberof ContactsCreateAddressPayload
76
+ */
77
+ dateSince?: Date | null;
78
+ }
79
+ /**
80
+ * Check if a given object implements the ContactsCreateAddressPayload interface.
81
+ */
82
+ export declare function instanceOfContactsCreateAddressPayload(value: object): value is ContactsCreateAddressPayload;
83
+ export declare function ContactsCreateAddressPayloadFromJSON(json: any): ContactsCreateAddressPayload;
84
+ export declare function ContactsCreateAddressPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactsCreateAddressPayload;
85
+ export declare function ContactsCreateAddressPayloadToJSON(json: any): ContactsCreateAddressPayload;
86
+ export declare function ContactsCreateAddressPayloadToJSONTyped(value?: ContactsCreateAddressPayload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Equisoft /connect API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ContactsCreateAddressPayload interface.
16
+ */
17
+ export function instanceOfContactsCreateAddressPayload(value) {
18
+ if (!('type' in value) || value['type'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ContactsCreateAddressPayloadFromJSON(json) {
23
+ return ContactsCreateAddressPayloadFromJSONTyped(json, false);
24
+ }
25
+ export function ContactsCreateAddressPayloadFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'type': json['type'],
31
+ 'isMain': json['isMain'] == null ? undefined : json['isMain'],
32
+ 'isPostal': json['isPostal'] == null ? undefined : json['isPostal'],
33
+ 'line1': json['line1'] == null ? undefined : json['line1'],
34
+ 'line2': json['line2'] == null ? undefined : json['line2'],
35
+ 'city': json['city'] == null ? undefined : json['city'],
36
+ 'stateProvince': json['stateProvince'] == null ? undefined : json['stateProvince'],
37
+ 'country': json['country'] == null ? undefined : json['country'],
38
+ 'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
39
+ 'dateSince': json['dateSince'] == null ? undefined : (new Date(json['dateSince'])),
40
+ };
41
+ }
42
+ export function ContactsCreateAddressPayloadToJSON(json) {
43
+ return ContactsCreateAddressPayloadToJSONTyped(json, false);
44
+ }
45
+ export function ContactsCreateAddressPayloadToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'type': value['type'],
51
+ 'isMain': value['isMain'],
52
+ 'isPostal': value['isPostal'],
53
+ 'line1': value['line1'],
54
+ 'line2': value['line2'],
55
+ 'city': value['city'],
56
+ 'stateProvince': value['stateProvince'],
57
+ 'country': value['country'],
58
+ 'postalCode': value['postalCode'],
59
+ 'dateSince': value['dateSince'] == null ? undefined : (value['dateSince'].toISOString().substring(0, 10)),
60
+ };
61
+ }