@equisoft/equisoft-connect-sdk-typescript 13.57.1-snapshot.20260903164045 → 13.58.0
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.
- package/.openapi-generator/FILES +14 -0
- package/README.md +7 -0
- package/dist/esm/models/ContactsBooleanCreateCustomFieldPayload.d.ts +40 -0
- package/dist/esm/models/ContactsBooleanCreateCustomFieldPayload.js +43 -0
- package/dist/esm/models/ContactsCreateContactPayload.d.ts +7 -0
- package/dist/esm/models/ContactsCreateContactPayload.js +3 -0
- package/dist/esm/models/ContactsCreateCustomFieldPayload.d.ts +33 -0
- package/dist/esm/models/ContactsCreateCustomFieldPayload.js +88 -0
- package/dist/esm/models/ContactsDateCreateCustomFieldPayload.d.ts +40 -0
- package/dist/esm/models/ContactsDateCreateCustomFieldPayload.js +43 -0
- package/dist/esm/models/ContactsFieldValueCreateCustomFieldPayload.d.ts +40 -0
- package/dist/esm/models/ContactsFieldValueCreateCustomFieldPayload.js +43 -0
- package/dist/esm/models/ContactsMoneyCreateCustomFieldPayload.d.ts +40 -0
- package/dist/esm/models/ContactsMoneyCreateCustomFieldPayload.js +43 -0
- package/dist/esm/models/ContactsNumericCreateCustomFieldPayload.d.ts +40 -0
- package/dist/esm/models/ContactsNumericCreateCustomFieldPayload.js +43 -0
- package/dist/esm/models/ContactsTextCreateCustomFieldPayload.d.ts +40 -0
- package/dist/esm/models/ContactsTextCreateCustomFieldPayload.js +43 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/ContactsBooleanCreateCustomFieldPayload.d.ts +40 -0
- package/dist/models/ContactsBooleanCreateCustomFieldPayload.js +50 -0
- package/dist/models/ContactsCreateContactPayload.d.ts +7 -0
- package/dist/models/ContactsCreateContactPayload.js +3 -0
- package/dist/models/ContactsCreateCustomFieldPayload.d.ts +33 -0
- package/dist/models/ContactsCreateCustomFieldPayload.js +95 -0
- package/dist/models/ContactsDateCreateCustomFieldPayload.d.ts +40 -0
- package/dist/models/ContactsDateCreateCustomFieldPayload.js +50 -0
- package/dist/models/ContactsFieldValueCreateCustomFieldPayload.d.ts +40 -0
- package/dist/models/ContactsFieldValueCreateCustomFieldPayload.js +50 -0
- package/dist/models/ContactsMoneyCreateCustomFieldPayload.d.ts +40 -0
- package/dist/models/ContactsMoneyCreateCustomFieldPayload.js +50 -0
- package/dist/models/ContactsNumericCreateCustomFieldPayload.d.ts +40 -0
- package/dist/models/ContactsNumericCreateCustomFieldPayload.js +50 -0
- package/dist/models/ContactsTextCreateCustomFieldPayload.d.ts +40 -0
- package/dist/models/ContactsTextCreateCustomFieldPayload.js +50 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/docs/ContactsBooleanCreateCustomFieldPayload.md +36 -0
- package/docs/ContactsCreateContactPayload.md +2 -0
- package/docs/ContactsCreateCustomFieldPayload.md +34 -0
- package/docs/ContactsDateCreateCustomFieldPayload.md +36 -0
- package/docs/ContactsFieldValueCreateCustomFieldPayload.md +36 -0
- package/docs/ContactsMoneyCreateCustomFieldPayload.md +36 -0
- package/docs/ContactsNumericCreateCustomFieldPayload.md +36 -0
- package/docs/ContactsTextCreateCustomFieldPayload.md +36 -0
- package/package.json +1 -1
- package/src/models/ContactsBooleanCreateCustomFieldPayload.ts +92 -0
- package/src/models/ContactsCreateContactPayload.ts +15 -0
- package/src/models/ContactsCreateCustomFieldPayload.ts +122 -0
- package/src/models/ContactsDateCreateCustomFieldPayload.ts +92 -0
- package/src/models/ContactsFieldValueCreateCustomFieldPayload.ts +92 -0
- package/src/models/ContactsMoneyCreateCustomFieldPayload.ts +92 -0
- package/src/models/ContactsNumericCreateCustomFieldPayload.ts +92 -0
- package/src/models/ContactsTextCreateCustomFieldPayload.ts +92 -0
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ContactsNumericCreateCustomFieldPayload
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | [ContactsCustomFieldTypeSchema](ContactsCustomFieldTypeSchema.md)
|
|
10
|
+
`value` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ContactsNumericCreateCustomFieldPayload } from '@equisoft/equisoft-connect-sdk-typescript'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"value": null,
|
|
21
|
+
} satisfies ContactsNumericCreateCustomFieldPayload
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ContactsNumericCreateCustomFieldPayload
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ContactsTextCreateCustomFieldPayload
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`type` | [ContactsCustomFieldTypeSchema](ContactsCustomFieldTypeSchema.md)
|
|
10
|
+
`value` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ContactsTextCreateCustomFieldPayload } from '@equisoft/equisoft-connect-sdk-typescript'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"type": null,
|
|
20
|
+
"value": null,
|
|
21
|
+
} satisfies ContactsTextCreateCustomFieldPayload
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ContactsTextCreateCustomFieldPayload
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContactsCustomFieldTypeSchema } from './ContactsCustomFieldTypeSchema';
|
|
17
|
+
import {
|
|
18
|
+
ContactsCustomFieldTypeSchemaFromJSON,
|
|
19
|
+
ContactsCustomFieldTypeSchemaFromJSONTyped,
|
|
20
|
+
ContactsCustomFieldTypeSchemaToJSON,
|
|
21
|
+
ContactsCustomFieldTypeSchemaToJSONTyped,
|
|
22
|
+
} from './ContactsCustomFieldTypeSchema';
|
|
23
|
+
import type { ContactsCreateCustomFieldPayload } from './ContactsCreateCustomFieldPayload';
|
|
24
|
+
import {
|
|
25
|
+
ContactsCreateCustomFieldPayloadFromJSON,
|
|
26
|
+
ContactsCreateCustomFieldPayloadFromJSONTyped,
|
|
27
|
+
ContactsCreateCustomFieldPayloadToJSON,
|
|
28
|
+
ContactsCreateCustomFieldPayloadToJSONTyped,
|
|
29
|
+
} from './ContactsCreateCustomFieldPayload';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ContactsBooleanCreateCustomFieldPayload
|
|
35
|
+
*/
|
|
36
|
+
export interface ContactsBooleanCreateCustomFieldPayload extends ContactsCreateCustomFieldPayload {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ContactsCustomFieldTypeSchema}
|
|
40
|
+
* @memberof ContactsBooleanCreateCustomFieldPayload
|
|
41
|
+
*/
|
|
42
|
+
type: ContactsCustomFieldTypeSchema;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof ContactsBooleanCreateCustomFieldPayload
|
|
47
|
+
*/
|
|
48
|
+
value: boolean;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ContactsBooleanCreateCustomFieldPayload interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfContactsBooleanCreateCustomFieldPayload(value: object): value is ContactsBooleanCreateCustomFieldPayload {
|
|
57
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
58
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ContactsBooleanCreateCustomFieldPayloadFromJSON(json: any): ContactsBooleanCreateCustomFieldPayload {
|
|
63
|
+
return ContactsBooleanCreateCustomFieldPayloadFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ContactsBooleanCreateCustomFieldPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactsBooleanCreateCustomFieldPayload {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
...ContactsCreateCustomFieldPayloadFromJSONTyped(json, true),
|
|
72
|
+
'type': ContactsCustomFieldTypeSchemaFromJSON(json['type']),
|
|
73
|
+
'value': json['value'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ContactsBooleanCreateCustomFieldPayloadToJSON(json: any): ContactsBooleanCreateCustomFieldPayload {
|
|
78
|
+
return ContactsBooleanCreateCustomFieldPayloadToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ContactsBooleanCreateCustomFieldPayloadToJSONTyped(value?: ContactsBooleanCreateCustomFieldPayload | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
...ContactsCreateCustomFieldPayloadToJSONTyped(value, true),
|
|
88
|
+
'type': ContactsCustomFieldTypeSchemaToJSON(value['type']),
|
|
89
|
+
'value': value['value'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
ContactsCreateAddressPayloadToJSON,
|
|
35
35
|
ContactsCreateAddressPayloadToJSONTyped,
|
|
36
36
|
} from './ContactsCreateAddressPayload';
|
|
37
|
+
import type { ContactsCreateCustomFieldPayload } from './ContactsCreateCustomFieldPayload';
|
|
38
|
+
import {
|
|
39
|
+
ContactsCreateCustomFieldPayloadFromJSON,
|
|
40
|
+
ContactsCreateCustomFieldPayloadFromJSONTyped,
|
|
41
|
+
ContactsCreateCustomFieldPayloadToJSON,
|
|
42
|
+
ContactsCreateCustomFieldPayloadToJSONTyped,
|
|
43
|
+
} from './ContactsCreateCustomFieldPayload';
|
|
37
44
|
import type { ContactsCreateSegmentationPayload } from './ContactsCreateSegmentationPayload';
|
|
38
45
|
import {
|
|
39
46
|
ContactsCreateSegmentationPayloadFromJSON,
|
|
@@ -82,6 +89,12 @@ export interface ContactsCreateContactPayload {
|
|
|
82
89
|
* @memberof ContactsCreateContactPayload
|
|
83
90
|
*/
|
|
84
91
|
identification: ContactsCreateIdentificationPayload;
|
|
92
|
+
/**
|
|
93
|
+
* Custom fields keyed by system name
|
|
94
|
+
* @type {Array<ContactsCreateCustomFieldPayload>}
|
|
95
|
+
* @memberof ContactsCreateContactPayload
|
|
96
|
+
*/
|
|
97
|
+
customFields?: Array<ContactsCreateCustomFieldPayload>;
|
|
85
98
|
/**
|
|
86
99
|
*
|
|
87
100
|
* @type {ContactsCreateAdditionalInformationPayload}
|
|
@@ -157,6 +170,7 @@ export function ContactsCreateContactPayloadFromJSONTyped(json: any, ignoreDiscr
|
|
|
157
170
|
return {
|
|
158
171
|
|
|
159
172
|
'identification': ContactsCreateIdentificationPayloadFromJSON(json['identification']),
|
|
173
|
+
'customFields': json['customFields'] == null ? undefined : ((json['customFields'] as Array<any>).map(ContactsCreateCustomFieldPayloadFromJSON)),
|
|
160
174
|
'additionalInformation': json['additionalInformation'] == null ? undefined : ContactsCreateAdditionalInformationPayloadFromJSON(json['additionalInformation']),
|
|
161
175
|
'segmentation': json['segmentation'] == null ? undefined : ContactsCreateSegmentationPayloadFromJSON(json['segmentation']),
|
|
162
176
|
'addresses': json['addresses'] == null ? undefined : ((json['addresses'] as Array<any>).map(ContactsCreateAddressPayloadFromJSON)),
|
|
@@ -181,6 +195,7 @@ export function ContactsCreateContactPayloadToJSONTyped(value?: ContactsCreateCo
|
|
|
181
195
|
return {
|
|
182
196
|
|
|
183
197
|
'identification': ContactsCreateIdentificationPayloadToJSON(value['identification']),
|
|
198
|
+
'customFields': value['customFields'] == null ? undefined : ((value['customFields'] as Array<any>).map(ContactsCreateCustomFieldPayloadToJSON)),
|
|
184
199
|
'additionalInformation': ContactsCreateAdditionalInformationPayloadToJSON(value['additionalInformation']),
|
|
185
200
|
'segmentation': ContactsCreateSegmentationPayloadToJSON(value['segmentation']),
|
|
186
201
|
'addresses': value['addresses'] == null ? undefined : ((value['addresses'] as Array<any>).map(ContactsCreateAddressPayloadToJSON)),
|
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContactsCustomFieldTypeSchema } from './ContactsCustomFieldTypeSchema';
|
|
17
|
+
import {
|
|
18
|
+
ContactsCustomFieldTypeSchemaFromJSON,
|
|
19
|
+
ContactsCustomFieldTypeSchemaFromJSONTyped,
|
|
20
|
+
ContactsCustomFieldTypeSchemaToJSON,
|
|
21
|
+
ContactsCustomFieldTypeSchemaToJSONTyped,
|
|
22
|
+
} from './ContactsCustomFieldTypeSchema';
|
|
23
|
+
|
|
24
|
+
import { type ContactsBooleanCreateCustomFieldPayload, ContactsBooleanCreateCustomFieldPayloadFromJSONTyped, ContactsBooleanCreateCustomFieldPayloadToJSON, ContactsBooleanCreateCustomFieldPayloadToJSONTyped } from './ContactsBooleanCreateCustomFieldPayload';
|
|
25
|
+
import { type ContactsDateCreateCustomFieldPayload, ContactsDateCreateCustomFieldPayloadFromJSONTyped, ContactsDateCreateCustomFieldPayloadToJSON, ContactsDateCreateCustomFieldPayloadToJSONTyped } from './ContactsDateCreateCustomFieldPayload';
|
|
26
|
+
import { type ContactsMoneyCreateCustomFieldPayload, ContactsMoneyCreateCustomFieldPayloadFromJSONTyped, ContactsMoneyCreateCustomFieldPayloadToJSON, ContactsMoneyCreateCustomFieldPayloadToJSONTyped } from './ContactsMoneyCreateCustomFieldPayload';
|
|
27
|
+
import { type ContactsNumericCreateCustomFieldPayload, ContactsNumericCreateCustomFieldPayloadFromJSONTyped, ContactsNumericCreateCustomFieldPayloadToJSON, ContactsNumericCreateCustomFieldPayloadToJSONTyped } from './ContactsNumericCreateCustomFieldPayload';
|
|
28
|
+
import { type ContactsTextCreateCustomFieldPayload, ContactsTextCreateCustomFieldPayloadFromJSONTyped, ContactsTextCreateCustomFieldPayloadToJSON, ContactsTextCreateCustomFieldPayloadToJSONTyped } from './ContactsTextCreateCustomFieldPayload';
|
|
29
|
+
import { type ContactsFieldValueCreateCustomFieldPayload, ContactsFieldValueCreateCustomFieldPayloadFromJSONTyped, ContactsFieldValueCreateCustomFieldPayloadToJSON, ContactsFieldValueCreateCustomFieldPayloadToJSONTyped } from './ContactsFieldValueCreateCustomFieldPayload';
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @export
|
|
33
|
+
* @interface ContactsCreateCustomFieldPayload
|
|
34
|
+
*/
|
|
35
|
+
export interface ContactsCreateCustomFieldPayload {
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {ContactsCustomFieldTypeSchema}
|
|
39
|
+
* @memberof ContactsCreateCustomFieldPayload
|
|
40
|
+
*/
|
|
41
|
+
type: ContactsCustomFieldTypeSchema;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the ContactsCreateCustomFieldPayload interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfContactsCreateCustomFieldPayload(value: object): value is ContactsCreateCustomFieldPayload {
|
|
50
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ContactsCreateCustomFieldPayloadFromJSON(json: any): ContactsCreateCustomFieldPayload {
|
|
55
|
+
return ContactsCreateCustomFieldPayloadFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ContactsCreateCustomFieldPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactsCreateCustomFieldPayload {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
if (!ignoreDiscriminator) {
|
|
63
|
+
if (json['type'] === 'boolean_field') {
|
|
64
|
+
return ContactsBooleanCreateCustomFieldPayloadFromJSONTyped(json, ignoreDiscriminator);
|
|
65
|
+
}
|
|
66
|
+
if (json['type'] === 'date_field') {
|
|
67
|
+
return ContactsDateCreateCustomFieldPayloadFromJSONTyped(json, ignoreDiscriminator);
|
|
68
|
+
}
|
|
69
|
+
if (json['type'] === 'money_field') {
|
|
70
|
+
return ContactsMoneyCreateCustomFieldPayloadFromJSONTyped(json, ignoreDiscriminator);
|
|
71
|
+
}
|
|
72
|
+
if (json['type'] === 'numeric_field') {
|
|
73
|
+
return ContactsNumericCreateCustomFieldPayloadFromJSONTyped(json, ignoreDiscriminator);
|
|
74
|
+
}
|
|
75
|
+
if (json['type'] === 'text_field') {
|
|
76
|
+
return ContactsTextCreateCustomFieldPayloadFromJSONTyped(json, ignoreDiscriminator);
|
|
77
|
+
}
|
|
78
|
+
if (json['type'] === 'vd_field') {
|
|
79
|
+
return ContactsFieldValueCreateCustomFieldPayloadFromJSONTyped(json, ignoreDiscriminator);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'type': ContactsCustomFieldTypeSchemaFromJSON(json['type']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function ContactsCreateCustomFieldPayloadToJSON(json: any): ContactsCreateCustomFieldPayload {
|
|
90
|
+
return ContactsCreateCustomFieldPayloadToJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function ContactsCreateCustomFieldPayloadToJSONTyped(value?: ContactsCreateCustomFieldPayload | null, ignoreDiscriminator: boolean = false): any {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (!ignoreDiscriminator) {
|
|
99
|
+
switch (value['type']) {
|
|
100
|
+
case 'boolean_field':
|
|
101
|
+
return ContactsBooleanCreateCustomFieldPayloadToJSONTyped(value as ContactsBooleanCreateCustomFieldPayload, ignoreDiscriminator);
|
|
102
|
+
case 'date_field':
|
|
103
|
+
return ContactsDateCreateCustomFieldPayloadToJSONTyped(value as ContactsDateCreateCustomFieldPayload, ignoreDiscriminator);
|
|
104
|
+
case 'money_field':
|
|
105
|
+
return ContactsMoneyCreateCustomFieldPayloadToJSONTyped(value as ContactsMoneyCreateCustomFieldPayload, ignoreDiscriminator);
|
|
106
|
+
case 'numeric_field':
|
|
107
|
+
return ContactsNumericCreateCustomFieldPayloadToJSONTyped(value as ContactsNumericCreateCustomFieldPayload, ignoreDiscriminator);
|
|
108
|
+
case 'text_field':
|
|
109
|
+
return ContactsTextCreateCustomFieldPayloadToJSONTyped(value as ContactsTextCreateCustomFieldPayload, ignoreDiscriminator);
|
|
110
|
+
case 'vd_field':
|
|
111
|
+
return ContactsFieldValueCreateCustomFieldPayloadToJSONTyped(value as ContactsFieldValueCreateCustomFieldPayload, ignoreDiscriminator);
|
|
112
|
+
default:
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'type': ContactsCustomFieldTypeSchemaToJSON(value['type']),
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContactsCustomFieldTypeSchema } from './ContactsCustomFieldTypeSchema';
|
|
17
|
+
import {
|
|
18
|
+
ContactsCustomFieldTypeSchemaFromJSON,
|
|
19
|
+
ContactsCustomFieldTypeSchemaFromJSONTyped,
|
|
20
|
+
ContactsCustomFieldTypeSchemaToJSON,
|
|
21
|
+
ContactsCustomFieldTypeSchemaToJSONTyped,
|
|
22
|
+
} from './ContactsCustomFieldTypeSchema';
|
|
23
|
+
import type { ContactsCreateCustomFieldPayload } from './ContactsCreateCustomFieldPayload';
|
|
24
|
+
import {
|
|
25
|
+
ContactsCreateCustomFieldPayloadFromJSON,
|
|
26
|
+
ContactsCreateCustomFieldPayloadFromJSONTyped,
|
|
27
|
+
ContactsCreateCustomFieldPayloadToJSON,
|
|
28
|
+
ContactsCreateCustomFieldPayloadToJSONTyped,
|
|
29
|
+
} from './ContactsCreateCustomFieldPayload';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ContactsDateCreateCustomFieldPayload
|
|
35
|
+
*/
|
|
36
|
+
export interface ContactsDateCreateCustomFieldPayload extends ContactsCreateCustomFieldPayload {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ContactsCustomFieldTypeSchema}
|
|
40
|
+
* @memberof ContactsDateCreateCustomFieldPayload
|
|
41
|
+
*/
|
|
42
|
+
type: ContactsCustomFieldTypeSchema;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ContactsDateCreateCustomFieldPayload
|
|
47
|
+
*/
|
|
48
|
+
value: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ContactsDateCreateCustomFieldPayload interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfContactsDateCreateCustomFieldPayload(value: object): value is ContactsDateCreateCustomFieldPayload {
|
|
57
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
58
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ContactsDateCreateCustomFieldPayloadFromJSON(json: any): ContactsDateCreateCustomFieldPayload {
|
|
63
|
+
return ContactsDateCreateCustomFieldPayloadFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ContactsDateCreateCustomFieldPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactsDateCreateCustomFieldPayload {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
...ContactsCreateCustomFieldPayloadFromJSONTyped(json, true),
|
|
72
|
+
'type': ContactsCustomFieldTypeSchemaFromJSON(json['type']),
|
|
73
|
+
'value': json['value'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ContactsDateCreateCustomFieldPayloadToJSON(json: any): ContactsDateCreateCustomFieldPayload {
|
|
78
|
+
return ContactsDateCreateCustomFieldPayloadToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ContactsDateCreateCustomFieldPayloadToJSONTyped(value?: ContactsDateCreateCustomFieldPayload | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
...ContactsCreateCustomFieldPayloadToJSONTyped(value, true),
|
|
88
|
+
'type': ContactsCustomFieldTypeSchemaToJSON(value['type']),
|
|
89
|
+
'value': value['value'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContactsCustomFieldTypeSchema } from './ContactsCustomFieldTypeSchema';
|
|
17
|
+
import {
|
|
18
|
+
ContactsCustomFieldTypeSchemaFromJSON,
|
|
19
|
+
ContactsCustomFieldTypeSchemaFromJSONTyped,
|
|
20
|
+
ContactsCustomFieldTypeSchemaToJSON,
|
|
21
|
+
ContactsCustomFieldTypeSchemaToJSONTyped,
|
|
22
|
+
} from './ContactsCustomFieldTypeSchema';
|
|
23
|
+
import type { ContactsCreateCustomFieldPayload } from './ContactsCreateCustomFieldPayload';
|
|
24
|
+
import {
|
|
25
|
+
ContactsCreateCustomFieldPayloadFromJSON,
|
|
26
|
+
ContactsCreateCustomFieldPayloadFromJSONTyped,
|
|
27
|
+
ContactsCreateCustomFieldPayloadToJSON,
|
|
28
|
+
ContactsCreateCustomFieldPayloadToJSONTyped,
|
|
29
|
+
} from './ContactsCreateCustomFieldPayload';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ContactsFieldValueCreateCustomFieldPayload
|
|
35
|
+
*/
|
|
36
|
+
export interface ContactsFieldValueCreateCustomFieldPayload extends ContactsCreateCustomFieldPayload {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ContactsCustomFieldTypeSchema}
|
|
40
|
+
* @memberof ContactsFieldValueCreateCustomFieldPayload
|
|
41
|
+
*/
|
|
42
|
+
type: ContactsCustomFieldTypeSchema;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ContactsFieldValueCreateCustomFieldPayload
|
|
47
|
+
*/
|
|
48
|
+
value: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ContactsFieldValueCreateCustomFieldPayload interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfContactsFieldValueCreateCustomFieldPayload(value: object): value is ContactsFieldValueCreateCustomFieldPayload {
|
|
57
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
58
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ContactsFieldValueCreateCustomFieldPayloadFromJSON(json: any): ContactsFieldValueCreateCustomFieldPayload {
|
|
63
|
+
return ContactsFieldValueCreateCustomFieldPayloadFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ContactsFieldValueCreateCustomFieldPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactsFieldValueCreateCustomFieldPayload {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
...ContactsCreateCustomFieldPayloadFromJSONTyped(json, true),
|
|
72
|
+
'type': ContactsCustomFieldTypeSchemaFromJSON(json['type']),
|
|
73
|
+
'value': json['value'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ContactsFieldValueCreateCustomFieldPayloadToJSON(json: any): ContactsFieldValueCreateCustomFieldPayload {
|
|
78
|
+
return ContactsFieldValueCreateCustomFieldPayloadToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ContactsFieldValueCreateCustomFieldPayloadToJSONTyped(value?: ContactsFieldValueCreateCustomFieldPayload | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
...ContactsCreateCustomFieldPayloadToJSONTyped(value, true),
|
|
88
|
+
'type': ContactsCustomFieldTypeSchemaToJSON(value['type']),
|
|
89
|
+
'value': value['value'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContactsCustomFieldTypeSchema } from './ContactsCustomFieldTypeSchema';
|
|
17
|
+
import {
|
|
18
|
+
ContactsCustomFieldTypeSchemaFromJSON,
|
|
19
|
+
ContactsCustomFieldTypeSchemaFromJSONTyped,
|
|
20
|
+
ContactsCustomFieldTypeSchemaToJSON,
|
|
21
|
+
ContactsCustomFieldTypeSchemaToJSONTyped,
|
|
22
|
+
} from './ContactsCustomFieldTypeSchema';
|
|
23
|
+
import type { ContactsCreateCustomFieldPayload } from './ContactsCreateCustomFieldPayload';
|
|
24
|
+
import {
|
|
25
|
+
ContactsCreateCustomFieldPayloadFromJSON,
|
|
26
|
+
ContactsCreateCustomFieldPayloadFromJSONTyped,
|
|
27
|
+
ContactsCreateCustomFieldPayloadToJSON,
|
|
28
|
+
ContactsCreateCustomFieldPayloadToJSONTyped,
|
|
29
|
+
} from './ContactsCreateCustomFieldPayload';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ContactsMoneyCreateCustomFieldPayload
|
|
35
|
+
*/
|
|
36
|
+
export interface ContactsMoneyCreateCustomFieldPayload extends ContactsCreateCustomFieldPayload {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ContactsCustomFieldTypeSchema}
|
|
40
|
+
* @memberof ContactsMoneyCreateCustomFieldPayload
|
|
41
|
+
*/
|
|
42
|
+
type: ContactsCustomFieldTypeSchema;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ContactsMoneyCreateCustomFieldPayload
|
|
47
|
+
*/
|
|
48
|
+
value: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ContactsMoneyCreateCustomFieldPayload interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfContactsMoneyCreateCustomFieldPayload(value: object): value is ContactsMoneyCreateCustomFieldPayload {
|
|
57
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
58
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ContactsMoneyCreateCustomFieldPayloadFromJSON(json: any): ContactsMoneyCreateCustomFieldPayload {
|
|
63
|
+
return ContactsMoneyCreateCustomFieldPayloadFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ContactsMoneyCreateCustomFieldPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactsMoneyCreateCustomFieldPayload {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
...ContactsCreateCustomFieldPayloadFromJSONTyped(json, true),
|
|
72
|
+
'type': ContactsCustomFieldTypeSchemaFromJSON(json['type']),
|
|
73
|
+
'value': json['value'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ContactsMoneyCreateCustomFieldPayloadToJSON(json: any): ContactsMoneyCreateCustomFieldPayload {
|
|
78
|
+
return ContactsMoneyCreateCustomFieldPayloadToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ContactsMoneyCreateCustomFieldPayloadToJSONTyped(value?: ContactsMoneyCreateCustomFieldPayload | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
...ContactsCreateCustomFieldPayloadToJSONTyped(value, true),
|
|
88
|
+
'type': ContactsCustomFieldTypeSchemaToJSON(value['type']),
|
|
89
|
+
'value': value['value'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|