@equisoft/equisoft-connect-sdk-typescript 13.45.1-snapshot.20260303081907 → 13.46.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/dist/esm/models/ContactsCreateIdentificationPayload.d.ts +15 -9
- package/dist/esm/models/ContactsCreateIdentificationPayload.js +33 -16
- package/dist/esm/models/ContactsCreateIndividualIdentificationPayload.d.ts +2 -8
- package/dist/esm/models/ContactsCreateIndividualIdentificationPayload.js +3 -29
- package/dist/esm/models/ContactsCreateOrganizationIdentificationPayload.d.ts +2 -8
- package/dist/esm/models/ContactsCreateOrganizationIdentificationPayload.js +3 -15
- package/dist/esm/models/ContactsIdentification.d.ts +15 -9
- package/dist/esm/models/ContactsIdentification.js +33 -16
- package/dist/esm/models/ContactsIndividualIdentification.d.ts +2 -8
- package/dist/esm/models/ContactsIndividualIdentification.js +3 -27
- package/dist/esm/models/ContactsOrganizationIdentification.d.ts +2 -8
- package/dist/esm/models/ContactsOrganizationIdentification.js +3 -15
- package/dist/esm/models/MovementClientBaseUsingDistributionListMovement.d.ts +2 -8
- package/dist/esm/models/MovementClientBaseUsingDistributionListMovement.js +3 -39
- package/dist/esm/models/MovementClientBaseUsingDistributionListMovementPayload.d.ts +2 -8
- package/dist/esm/models/MovementClientBaseUsingDistributionListMovementPayload.js +3 -23
- package/dist/esm/models/MovementClientBaseUsingFileMovement.d.ts +2 -8
- package/dist/esm/models/MovementClientBaseUsingFileMovement.js +3 -41
- package/dist/esm/models/MovementClientBaseUsingFileMovementPayload.d.ts +2 -8
- package/dist/esm/models/MovementClientBaseUsingFileMovementPayload.js +3 -25
- package/dist/esm/models/MovementCopyMovement.d.ts +2 -8
- package/dist/esm/models/MovementCopyMovement.js +3 -33
- package/dist/esm/models/MovementCopyMovementPayload.d.ts +2 -8
- package/dist/esm/models/MovementCopyMovementPayload.js +3 -19
- package/dist/esm/models/MovementMoveMovement.d.ts +2 -8
- package/dist/esm/models/MovementMoveMovement.js +3 -33
- package/dist/esm/models/MovementMoveMovementPayload.d.ts +2 -8
- package/dist/esm/models/MovementMoveMovementPayload.js +3 -19
- package/dist/esm/models/MovementMovement.d.ts +70 -15
- package/dist/esm/models/MovementMovement.js +64 -26
- package/dist/esm/models/MovementMovementPayload.d.ts +21 -15
- package/dist/esm/models/MovementMovementPayload.js +47 -26
- package/dist/models/ContactsCreateIdentificationPayload.d.ts +15 -9
- package/dist/models/ContactsCreateIdentificationPayload.js +32 -14
- package/dist/models/ContactsCreateIndividualIdentificationPayload.d.ts +2 -8
- package/dist/models/ContactsCreateIndividualIdentificationPayload.js +3 -29
- package/dist/models/ContactsCreateOrganizationIdentificationPayload.d.ts +2 -8
- package/dist/models/ContactsCreateOrganizationIdentificationPayload.js +3 -15
- package/dist/models/ContactsIdentification.d.ts +15 -9
- package/dist/models/ContactsIdentification.js +32 -14
- package/dist/models/ContactsIndividualIdentification.d.ts +2 -8
- package/dist/models/ContactsIndividualIdentification.js +3 -27
- package/dist/models/ContactsOrganizationIdentification.d.ts +2 -8
- package/dist/models/ContactsOrganizationIdentification.js +3 -15
- package/dist/models/MovementClientBaseUsingDistributionListMovement.d.ts +2 -8
- package/dist/models/MovementClientBaseUsingDistributionListMovement.js +3 -39
- package/dist/models/MovementClientBaseUsingDistributionListMovementPayload.d.ts +2 -8
- package/dist/models/MovementClientBaseUsingDistributionListMovementPayload.js +3 -23
- package/dist/models/MovementClientBaseUsingFileMovement.d.ts +2 -8
- package/dist/models/MovementClientBaseUsingFileMovement.js +3 -41
- package/dist/models/MovementClientBaseUsingFileMovementPayload.d.ts +2 -8
- package/dist/models/MovementClientBaseUsingFileMovementPayload.js +3 -25
- package/dist/models/MovementCopyMovement.d.ts +2 -8
- package/dist/models/MovementCopyMovement.js +3 -33
- package/dist/models/MovementCopyMovementPayload.d.ts +2 -8
- package/dist/models/MovementCopyMovementPayload.js +3 -19
- package/dist/models/MovementMoveMovement.d.ts +2 -8
- package/dist/models/MovementMoveMovement.js +3 -33
- package/dist/models/MovementMoveMovementPayload.d.ts +2 -8
- package/dist/models/MovementMoveMovementPayload.js +3 -19
- package/dist/models/MovementMovement.d.ts +70 -15
- package/dist/models/MovementMovement.js +61 -22
- package/dist/models/MovementMovementPayload.d.ts +21 -15
- package/dist/models/MovementMovementPayload.js +44 -22
- package/docs/ContactsCreateIdentificationPayload.md +0 -26
- package/docs/ContactsCreateIndividualIdentificationPayload.md +0 -2
- package/docs/ContactsCreateOrganizationIdentificationPayload.md +0 -2
- package/docs/ContactsIdentification.md +0 -24
- package/docs/ContactsIndividualIdentification.md +0 -2
- package/docs/ContactsOrganizationIdentification.md +0 -2
- package/docs/MovementClientBaseUsingDistributionListMovement.md +0 -2
- package/docs/MovementClientBaseUsingDistributionListMovementPayload.md +0 -2
- package/docs/MovementClientBaseUsingFileMovement.md +0 -2
- package/docs/MovementClientBaseUsingFileMovementPayload.md +0 -2
- package/docs/MovementCopyMovement.md +0 -2
- package/docs/MovementCopyMovementPayload.md +0 -2
- package/docs/MovementMoveMovement.md +0 -2
- package/docs/MovementMoveMovementPayload.md +0 -2
- package/docs/MovementMovement.md +0 -22
- package/docs/MovementMovementPayload.md +0 -24
- package/package.json +1 -1
- package/src/models/ContactsCreateIdentificationPayload.ts +56 -30
- package/src/models/ContactsCreateIndividualIdentificationPayload.ts +10 -12
- package/src/models/ContactsCreateOrganizationIdentificationPayload.ts +10 -12
- package/src/models/ContactsIdentification.ts +56 -30
- package/src/models/ContactsIndividualIdentification.ts +10 -12
- package/src/models/ContactsOrganizationIdentification.ts +10 -12
- package/src/models/MovementClientBaseUsingDistributionListMovement.ts +10 -12
- package/src/models/MovementClientBaseUsingDistributionListMovementPayload.ts +10 -12
- package/src/models/MovementClientBaseUsingFileMovement.ts +10 -12
- package/src/models/MovementClientBaseUsingFileMovementPayload.ts +10 -12
- package/src/models/MovementCopyMovement.ts +10 -12
- package/src/models/MovementCopyMovementPayload.ts +10 -12
- package/src/models/MovementMoveMovement.ts +10 -12
- package/src/models/MovementMoveMovementPayload.ts +10 -12
- package/src/models/MovementMovement.ts +146 -51
- package/src/models/MovementMovementPayload.ts +76 -52
|
@@ -11,10 +11,20 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { MovementMovementTypeFromJSON, MovementMovementTypeToJSON, } from './MovementMovementType';
|
|
15
|
+
import { MovementUserFromJSON, MovementUserToJSON, } from './MovementUser';
|
|
16
|
+
import { MovementClientBaseUsingDistributionListMovementFromJSONTyped, MovementClientBaseUsingDistributionListMovementToJSONTyped } from './MovementClientBaseUsingDistributionListMovement';
|
|
17
|
+
import { MovementClientBaseUsingFileMovementFromJSONTyped, MovementClientBaseUsingFileMovementToJSONTyped } from './MovementClientBaseUsingFileMovement';
|
|
18
|
+
import { MovementCopyMovementFromJSONTyped, MovementCopyMovementToJSONTyped } from './MovementCopyMovement';
|
|
19
|
+
import { MovementMoveMovementFromJSONTyped, MovementMoveMovementToJSONTyped } from './MovementMoveMovement';
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the MovementMovement interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfMovementMovement(value) {
|
|
24
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
18
28
|
export function MovementMovementFromJSON(json) {
|
|
19
29
|
return MovementMovementFromJSONTyped(json, false);
|
|
20
30
|
}
|
|
@@ -22,18 +32,32 @@ export function MovementMovementFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
32
|
if (json == null) {
|
|
23
33
|
return json;
|
|
24
34
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
if (!ignoreDiscriminator) {
|
|
36
|
+
if (json['type'] === 'CLIENTBASE_USING_DISTLIST') {
|
|
37
|
+
return MovementClientBaseUsingDistributionListMovementFromJSONTyped(json, ignoreDiscriminator);
|
|
38
|
+
}
|
|
39
|
+
if (json['type'] === 'CLIENTBASE_USING_FILE') {
|
|
40
|
+
return MovementClientBaseUsingFileMovementFromJSONTyped(json, ignoreDiscriminator);
|
|
41
|
+
}
|
|
42
|
+
if (json['type'] === 'COPY') {
|
|
43
|
+
return MovementCopyMovementFromJSONTyped(json, ignoreDiscriminator);
|
|
44
|
+
}
|
|
45
|
+
if (json['type'] === 'MOVE') {
|
|
46
|
+
return MovementMoveMovementFromJSONTyped(json, ignoreDiscriminator);
|
|
47
|
+
}
|
|
36
48
|
}
|
|
49
|
+
return {
|
|
50
|
+
'type': MovementMovementTypeFromJSON(json['type']),
|
|
51
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
52
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
53
|
+
'availableAction': json['availableAction'] == null ? undefined : json['availableAction'],
|
|
54
|
+
'scheduledDate': json['scheduledDate'] == null ? undefined : json['scheduledDate'],
|
|
55
|
+
'processedDate': json['processedDate'] == null ? undefined : json['processedDate'],
|
|
56
|
+
'addedDate': json['addedDate'] == null ? undefined : json['addedDate'],
|
|
57
|
+
'addedBy': json['addedBy'] == null ? undefined : MovementUserFromJSON(json['addedBy']),
|
|
58
|
+
'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'],
|
|
59
|
+
'cancelledBy': json['cancelledBy'] == null ? undefined : MovementUserFromJSON(json['cancelledBy']),
|
|
60
|
+
};
|
|
37
61
|
}
|
|
38
62
|
export function MovementMovementToJSON(json) {
|
|
39
63
|
return MovementMovementToJSONTyped(json, false);
|
|
@@ -42,16 +66,30 @@ export function MovementMovementToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
42
66
|
if (value == null) {
|
|
43
67
|
return value;
|
|
44
68
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
69
|
+
if (!ignoreDiscriminator) {
|
|
70
|
+
switch (value['type']) {
|
|
71
|
+
case 'CLIENTBASE_USING_DISTLIST':
|
|
72
|
+
return MovementClientBaseUsingDistributionListMovementToJSONTyped(value, ignoreDiscriminator);
|
|
73
|
+
case 'CLIENTBASE_USING_FILE':
|
|
74
|
+
return MovementClientBaseUsingFileMovementToJSONTyped(value, ignoreDiscriminator);
|
|
75
|
+
case 'COPY':
|
|
76
|
+
return MovementCopyMovementToJSONTyped(value, ignoreDiscriminator);
|
|
77
|
+
case 'MOVE':
|
|
78
|
+
return MovementMoveMovementToJSONTyped(value, ignoreDiscriminator);
|
|
79
|
+
default:
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
56
82
|
}
|
|
83
|
+
return {
|
|
84
|
+
'type': MovementMovementTypeToJSON(value['type']),
|
|
85
|
+
'id': value['id'],
|
|
86
|
+
'status': value['status'],
|
|
87
|
+
'availableAction': value['availableAction'],
|
|
88
|
+
'scheduledDate': value['scheduledDate'],
|
|
89
|
+
'processedDate': value['processedDate'],
|
|
90
|
+
'addedDate': value['addedDate'],
|
|
91
|
+
'addedBy': MovementUserToJSON(value['addedBy']),
|
|
92
|
+
'cancelledDate': value['cancelledDate'],
|
|
93
|
+
'cancelledBy': MovementUserToJSON(value['cancelledBy']),
|
|
94
|
+
};
|
|
57
95
|
}
|
|
@@ -9,25 +9,31 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type { MovementClientBaseUsingFileMovementPayload } from './MovementClientBaseUsingFileMovementPayload';
|
|
14
|
-
import type { MovementCopyMovementPayload } from './MovementCopyMovementPayload';
|
|
15
|
-
import type { MovementMoveMovementPayload } from './MovementMoveMovementPayload';
|
|
12
|
+
import type { MovementMovementType } from './MovementMovementType';
|
|
16
13
|
/**
|
|
17
|
-
* @type MovementMovementPayload
|
|
18
14
|
*
|
|
19
15
|
* @export
|
|
16
|
+
* @interface MovementMovementPayload
|
|
20
17
|
*/
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
export interface MovementMovementPayload {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MovementMovementType}
|
|
22
|
+
* @memberof MovementMovementPayload
|
|
23
|
+
*/
|
|
24
|
+
type: MovementMovementType;
|
|
25
|
+
/**
|
|
26
|
+
* Movement date.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MovementMovementPayload
|
|
29
|
+
*/
|
|
30
|
+
date?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the MovementMovementPayload interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfMovementMovementPayload(value: object): value is MovementMovementPayload;
|
|
30
36
|
export declare function MovementMovementPayloadFromJSON(json: any): MovementMovementPayload;
|
|
31
37
|
export declare function MovementMovementPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): MovementMovementPayload;
|
|
32
|
-
export declare function MovementMovementPayloadToJSON(json: any):
|
|
38
|
+
export declare function MovementMovementPayloadToJSON(json: any): MovementMovementPayload;
|
|
33
39
|
export declare function MovementMovementPayloadToJSONTyped(value?: MovementMovementPayload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -11,10 +11,19 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { MovementMovementTypeFromJSON, MovementMovementTypeToJSON, } from './MovementMovementType';
|
|
15
|
+
import { MovementClientBaseUsingDistributionListMovementPayloadFromJSONTyped, MovementClientBaseUsingDistributionListMovementPayloadToJSONTyped } from './MovementClientBaseUsingDistributionListMovementPayload';
|
|
16
|
+
import { MovementClientBaseUsingFileMovementPayloadFromJSONTyped, MovementClientBaseUsingFileMovementPayloadToJSONTyped } from './MovementClientBaseUsingFileMovementPayload';
|
|
17
|
+
import { MovementCopyMovementPayloadFromJSONTyped, MovementCopyMovementPayloadToJSONTyped } from './MovementCopyMovementPayload';
|
|
18
|
+
import { MovementMoveMovementPayloadFromJSONTyped, MovementMoveMovementPayloadToJSONTyped } from './MovementMoveMovementPayload';
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the MovementMovementPayload interface.
|
|
21
|
+
*/
|
|
22
|
+
export function instanceOfMovementMovementPayload(value) {
|
|
23
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
18
27
|
export function MovementMovementPayloadFromJSON(json) {
|
|
19
28
|
return MovementMovementPayloadFromJSONTyped(json, false);
|
|
20
29
|
}
|
|
@@ -22,18 +31,24 @@ export function MovementMovementPayloadFromJSONTyped(json, ignoreDiscriminator)
|
|
|
22
31
|
if (json == null) {
|
|
23
32
|
return json;
|
|
24
33
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
if (!ignoreDiscriminator) {
|
|
35
|
+
if (json['type'] === 'CLIENTBASE_USING_DISTLIST') {
|
|
36
|
+
return MovementClientBaseUsingDistributionListMovementPayloadFromJSONTyped(json, ignoreDiscriminator);
|
|
37
|
+
}
|
|
38
|
+
if (json['type'] === 'CLIENTBASE_USING_FILE') {
|
|
39
|
+
return MovementClientBaseUsingFileMovementPayloadFromJSONTyped(json, ignoreDiscriminator);
|
|
40
|
+
}
|
|
41
|
+
if (json['type'] === 'COPY') {
|
|
42
|
+
return MovementCopyMovementPayloadFromJSONTyped(json, ignoreDiscriminator);
|
|
43
|
+
}
|
|
44
|
+
if (json['type'] === 'MOVE') {
|
|
45
|
+
return MovementMoveMovementPayloadFromJSONTyped(json, ignoreDiscriminator);
|
|
46
|
+
}
|
|
36
47
|
}
|
|
48
|
+
return {
|
|
49
|
+
'type': MovementMovementTypeFromJSON(json['type']),
|
|
50
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
|
+
};
|
|
37
52
|
}
|
|
38
53
|
export function MovementMovementPayloadToJSON(json) {
|
|
39
54
|
return MovementMovementPayloadToJSONTyped(json, false);
|
|
@@ -42,16 +57,22 @@ export function MovementMovementPayloadToJSONTyped(value, ignoreDiscriminator =
|
|
|
42
57
|
if (value == null) {
|
|
43
58
|
return value;
|
|
44
59
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
if (!ignoreDiscriminator) {
|
|
61
|
+
switch (value['type']) {
|
|
62
|
+
case 'CLIENTBASE_USING_DISTLIST':
|
|
63
|
+
return MovementClientBaseUsingDistributionListMovementPayloadToJSONTyped(value, ignoreDiscriminator);
|
|
64
|
+
case 'CLIENTBASE_USING_FILE':
|
|
65
|
+
return MovementClientBaseUsingFileMovementPayloadToJSONTyped(value, ignoreDiscriminator);
|
|
66
|
+
case 'COPY':
|
|
67
|
+
return MovementCopyMovementPayloadToJSONTyped(value, ignoreDiscriminator);
|
|
68
|
+
case 'MOVE':
|
|
69
|
+
return MovementMoveMovementPayloadToJSONTyped(value, ignoreDiscriminator);
|
|
70
|
+
default:
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
56
73
|
}
|
|
74
|
+
return {
|
|
75
|
+
'type': MovementMovementTypeToJSON(value['type']),
|
|
76
|
+
'date': value['date'],
|
|
77
|
+
};
|
|
57
78
|
}
|
|
@@ -9,19 +9,25 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type { ContactsCreateOrganizationIdentificationPayload } from './ContactsCreateOrganizationIdentificationPayload';
|
|
12
|
+
import type { ContactIdentificationType } from './ContactIdentificationType';
|
|
14
13
|
/**
|
|
15
|
-
* @type ContactsCreateIdentificationPayload
|
|
16
14
|
*
|
|
17
15
|
* @export
|
|
16
|
+
* @interface ContactsCreateIdentificationPayload
|
|
18
17
|
*/
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
export interface ContactsCreateIdentificationPayload {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ContactIdentificationType}
|
|
22
|
+
* @memberof ContactsCreateIdentificationPayload
|
|
23
|
+
*/
|
|
24
|
+
type: ContactIdentificationType;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ContactsCreateIdentificationPayload interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfContactsCreateIdentificationPayload(value: object): value is ContactsCreateIdentificationPayload;
|
|
24
30
|
export declare function ContactsCreateIdentificationPayloadFromJSON(json: any): ContactsCreateIdentificationPayload;
|
|
25
31
|
export declare function ContactsCreateIdentificationPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactsCreateIdentificationPayload;
|
|
26
|
-
export declare function ContactsCreateIdentificationPayloadToJSON(json: any):
|
|
32
|
+
export declare function ContactsCreateIdentificationPayloadToJSON(json: any): ContactsCreateIdentificationPayload;
|
|
27
33
|
export declare function ContactsCreateIdentificationPayloadToJSONTyped(value?: ContactsCreateIdentificationPayload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,12 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfContactsCreateIdentificationPayload = instanceOfContactsCreateIdentificationPayload;
|
|
16
17
|
exports.ContactsCreateIdentificationPayloadFromJSON = ContactsCreateIdentificationPayloadFromJSON;
|
|
17
18
|
exports.ContactsCreateIdentificationPayloadFromJSONTyped = ContactsCreateIdentificationPayloadFromJSONTyped;
|
|
18
19
|
exports.ContactsCreateIdentificationPayloadToJSON = ContactsCreateIdentificationPayloadToJSON;
|
|
19
20
|
exports.ContactsCreateIdentificationPayloadToJSONTyped = ContactsCreateIdentificationPayloadToJSONTyped;
|
|
21
|
+
const ContactIdentificationType_1 = require("./ContactIdentificationType");
|
|
20
22
|
const ContactsCreateIndividualIdentificationPayload_1 = require("./ContactsCreateIndividualIdentificationPayload");
|
|
21
23
|
const ContactsCreateOrganizationIdentificationPayload_1 = require("./ContactsCreateOrganizationIdentificationPayload");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ContactsCreateIdentificationPayload interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfContactsCreateIdentificationPayload(value) {
|
|
28
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
22
32
|
function ContactsCreateIdentificationPayloadFromJSON(json) {
|
|
23
33
|
return ContactsCreateIdentificationPayloadFromJSONTyped(json, false);
|
|
24
34
|
}
|
|
@@ -26,14 +36,17 @@ function ContactsCreateIdentificationPayloadFromJSONTyped(json, ignoreDiscrimina
|
|
|
26
36
|
if (json == null) {
|
|
27
37
|
return json;
|
|
28
38
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
if (!ignoreDiscriminator) {
|
|
40
|
+
if (json['type'] === 'INDIVIDUAL') {
|
|
41
|
+
return (0, ContactsCreateIndividualIdentificationPayload_1.ContactsCreateIndividualIdentificationPayloadFromJSONTyped)(json, ignoreDiscriminator);
|
|
42
|
+
}
|
|
43
|
+
if (json['type'] === 'ORGANIZATION') {
|
|
44
|
+
return (0, ContactsCreateOrganizationIdentificationPayload_1.ContactsCreateOrganizationIdentificationPayloadFromJSONTyped)(json, ignoreDiscriminator);
|
|
45
|
+
}
|
|
36
46
|
}
|
|
47
|
+
return {
|
|
48
|
+
'type': (0, ContactIdentificationType_1.ContactIdentificationTypeFromJSON)(json['type']),
|
|
49
|
+
};
|
|
37
50
|
}
|
|
38
51
|
function ContactsCreateIdentificationPayloadToJSON(json) {
|
|
39
52
|
return ContactsCreateIdentificationPayloadToJSONTyped(json, false);
|
|
@@ -42,12 +55,17 @@ function ContactsCreateIdentificationPayloadToJSONTyped(value, ignoreDiscriminat
|
|
|
42
55
|
if (value == null) {
|
|
43
56
|
return value;
|
|
44
57
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
if (!ignoreDiscriminator) {
|
|
59
|
+
switch (value['type']) {
|
|
60
|
+
case 'INDIVIDUAL':
|
|
61
|
+
return (0, ContactsCreateIndividualIdentificationPayload_1.ContactsCreateIndividualIdentificationPayloadToJSONTyped)(value, ignoreDiscriminator);
|
|
62
|
+
case 'ORGANIZATION':
|
|
63
|
+
return (0, ContactsCreateOrganizationIdentificationPayload_1.ContactsCreateOrganizationIdentificationPayloadToJSONTyped)(value, ignoreDiscriminator);
|
|
64
|
+
default:
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
52
67
|
}
|
|
68
|
+
return {
|
|
69
|
+
'type': (0, ContactIdentificationType_1.ContactIdentificationTypeToJSON)(value['type']),
|
|
70
|
+
};
|
|
53
71
|
}
|
|
@@ -9,19 +9,13 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ContactsCreateIdentificationPayload } from './ContactsCreateIdentificationPayload';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
16
16
|
* @interface ContactsCreateIndividualIdentificationPayload
|
|
17
17
|
*/
|
|
18
|
-
export interface ContactsCreateIndividualIdentificationPayload {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {ContactIdentificationType}
|
|
22
|
-
* @memberof ContactsCreateIndividualIdentificationPayload
|
|
23
|
-
*/
|
|
24
|
-
type: ContactIdentificationType;
|
|
18
|
+
export interface ContactsCreateIndividualIdentificationPayload extends ContactsCreateIdentificationPayload {
|
|
25
19
|
/**
|
|
26
20
|
* Individual's first name
|
|
27
21
|
* @type {string}
|
|
@@ -18,13 +18,11 @@ exports.ContactsCreateIndividualIdentificationPayloadFromJSON = ContactsCreateIn
|
|
|
18
18
|
exports.ContactsCreateIndividualIdentificationPayloadFromJSONTyped = ContactsCreateIndividualIdentificationPayloadFromJSONTyped;
|
|
19
19
|
exports.ContactsCreateIndividualIdentificationPayloadToJSON = ContactsCreateIndividualIdentificationPayloadToJSON;
|
|
20
20
|
exports.ContactsCreateIndividualIdentificationPayloadToJSONTyped = ContactsCreateIndividualIdentificationPayloadToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const ContactsCreateIdentificationPayload_1 = require("./ContactsCreateIdentificationPayload");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the ContactsCreateIndividualIdentificationPayload interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfContactsCreateIndividualIdentificationPayload(value) {
|
|
26
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
-
return false;
|
|
28
26
|
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
29
27
|
return false;
|
|
30
28
|
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
@@ -40,19 +38,7 @@ function ContactsCreateIndividualIdentificationPayloadFromJSONTyped(json, ignore
|
|
|
40
38
|
if (json == null) {
|
|
41
39
|
return json;
|
|
42
40
|
}
|
|
43
|
-
return {
|
|
44
|
-
'type': (0, ContactIdentificationType_1.ContactIdentificationTypeFromJSON)(json['type']),
|
|
45
|
-
'firstName': json['firstName'],
|
|
46
|
-
'lastName': json['lastName'],
|
|
47
|
-
'gender': json['gender'],
|
|
48
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
49
|
-
'middleName': json['middleName'] == null ? undefined : json['middleName'],
|
|
50
|
-
'maidenName': json['maidenName'] == null ? undefined : json['maidenName'],
|
|
51
|
-
'nickname': json['nickname'] == null ? undefined : json['nickname'],
|
|
52
|
-
'suffix': json['suffix'] == null ? undefined : json['suffix'],
|
|
53
|
-
'greeting': json['greeting'] == null ? undefined : json['greeting'],
|
|
54
|
-
'clientNumber': json['clientNumber'] == null ? undefined : json['clientNumber'],
|
|
55
|
-
};
|
|
41
|
+
return Object.assign(Object.assign({}, (0, ContactsCreateIdentificationPayload_1.ContactsCreateIdentificationPayloadFromJSONTyped)(json, true)), { 'firstName': json['firstName'], 'lastName': json['lastName'], 'gender': json['gender'], 'title': json['title'] == null ? undefined : json['title'], 'middleName': json['middleName'] == null ? undefined : json['middleName'], 'maidenName': json['maidenName'] == null ? undefined : json['maidenName'], 'nickname': json['nickname'] == null ? undefined : json['nickname'], 'suffix': json['suffix'] == null ? undefined : json['suffix'], 'greeting': json['greeting'] == null ? undefined : json['greeting'], 'clientNumber': json['clientNumber'] == null ? undefined : json['clientNumber'] });
|
|
56
42
|
}
|
|
57
43
|
function ContactsCreateIndividualIdentificationPayloadToJSON(json) {
|
|
58
44
|
return ContactsCreateIndividualIdentificationPayloadToJSONTyped(json, false);
|
|
@@ -61,17 +47,5 @@ function ContactsCreateIndividualIdentificationPayloadToJSONTyped(value, ignoreD
|
|
|
61
47
|
if (value == null) {
|
|
62
48
|
return value;
|
|
63
49
|
}
|
|
64
|
-
return {
|
|
65
|
-
'type': (0, ContactIdentificationType_1.ContactIdentificationTypeToJSON)(value['type']),
|
|
66
|
-
'firstName': value['firstName'],
|
|
67
|
-
'lastName': value['lastName'],
|
|
68
|
-
'gender': value['gender'],
|
|
69
|
-
'title': value['title'],
|
|
70
|
-
'middleName': value['middleName'],
|
|
71
|
-
'maidenName': value['maidenName'],
|
|
72
|
-
'nickname': value['nickname'],
|
|
73
|
-
'suffix': value['suffix'],
|
|
74
|
-
'greeting': value['greeting'],
|
|
75
|
-
'clientNumber': value['clientNumber'],
|
|
76
|
-
};
|
|
50
|
+
return Object.assign(Object.assign({}, (0, ContactsCreateIdentificationPayload_1.ContactsCreateIdentificationPayloadToJSONTyped)(value, true)), { 'firstName': value['firstName'], 'lastName': value['lastName'], 'gender': value['gender'], 'title': value['title'], 'middleName': value['middleName'], 'maidenName': value['maidenName'], 'nickname': value['nickname'], 'suffix': value['suffix'], 'greeting': value['greeting'], 'clientNumber': value['clientNumber'] });
|
|
77
51
|
}
|
|
@@ -9,19 +9,13 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ContactsCreateIdentificationPayload } from './ContactsCreateIdentificationPayload';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
16
16
|
* @interface ContactsCreateOrganizationIdentificationPayload
|
|
17
17
|
*/
|
|
18
|
-
export interface ContactsCreateOrganizationIdentificationPayload {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {ContactIdentificationType}
|
|
22
|
-
* @memberof ContactsCreateOrganizationIdentificationPayload
|
|
23
|
-
*/
|
|
24
|
-
type: ContactIdentificationType;
|
|
18
|
+
export interface ContactsCreateOrganizationIdentificationPayload extends ContactsCreateIdentificationPayload {
|
|
25
19
|
/**
|
|
26
20
|
* Organization's name line one
|
|
27
21
|
* @type {string}
|
|
@@ -18,13 +18,11 @@ exports.ContactsCreateOrganizationIdentificationPayloadFromJSON = ContactsCreate
|
|
|
18
18
|
exports.ContactsCreateOrganizationIdentificationPayloadFromJSONTyped = ContactsCreateOrganizationIdentificationPayloadFromJSONTyped;
|
|
19
19
|
exports.ContactsCreateOrganizationIdentificationPayloadToJSON = ContactsCreateOrganizationIdentificationPayloadToJSON;
|
|
20
20
|
exports.ContactsCreateOrganizationIdentificationPayloadToJSONTyped = ContactsCreateOrganizationIdentificationPayloadToJSONTyped;
|
|
21
|
-
const
|
|
21
|
+
const ContactsCreateIdentificationPayload_1 = require("./ContactsCreateIdentificationPayload");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the ContactsCreateOrganizationIdentificationPayload interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfContactsCreateOrganizationIdentificationPayload(value) {
|
|
26
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
-
return false;
|
|
28
26
|
if (!('nameLine1' in value) || value['nameLine1'] === undefined)
|
|
29
27
|
return false;
|
|
30
28
|
if (!('abbreviation' in value) || value['abbreviation'] === undefined)
|
|
@@ -38,12 +36,7 @@ function ContactsCreateOrganizationIdentificationPayloadFromJSONTyped(json, igno
|
|
|
38
36
|
if (json == null) {
|
|
39
37
|
return json;
|
|
40
38
|
}
|
|
41
|
-
return {
|
|
42
|
-
'type': (0, ContactIdentificationType_1.ContactIdentificationTypeFromJSON)(json['type']),
|
|
43
|
-
'nameLine1': json['nameLine1'],
|
|
44
|
-
'nameLine2': json['nameLine2'] == null ? undefined : json['nameLine2'],
|
|
45
|
-
'abbreviation': json['abbreviation'],
|
|
46
|
-
};
|
|
39
|
+
return Object.assign(Object.assign({}, (0, ContactsCreateIdentificationPayload_1.ContactsCreateIdentificationPayloadFromJSONTyped)(json, true)), { 'nameLine1': json['nameLine1'], 'nameLine2': json['nameLine2'] == null ? undefined : json['nameLine2'], 'abbreviation': json['abbreviation'] });
|
|
47
40
|
}
|
|
48
41
|
function ContactsCreateOrganizationIdentificationPayloadToJSON(json) {
|
|
49
42
|
return ContactsCreateOrganizationIdentificationPayloadToJSONTyped(json, false);
|
|
@@ -52,10 +45,5 @@ function ContactsCreateOrganizationIdentificationPayloadToJSONTyped(value, ignor
|
|
|
52
45
|
if (value == null) {
|
|
53
46
|
return value;
|
|
54
47
|
}
|
|
55
|
-
return {
|
|
56
|
-
'type': (0, ContactIdentificationType_1.ContactIdentificationTypeToJSON)(value['type']),
|
|
57
|
-
'nameLine1': value['nameLine1'],
|
|
58
|
-
'nameLine2': value['nameLine2'],
|
|
59
|
-
'abbreviation': value['abbreviation'],
|
|
60
|
-
};
|
|
48
|
+
return Object.assign(Object.assign({}, (0, ContactsCreateIdentificationPayload_1.ContactsCreateIdentificationPayloadToJSONTyped)(value, true)), { 'nameLine1': value['nameLine1'], 'nameLine2': value['nameLine2'], 'abbreviation': value['abbreviation'] });
|
|
61
49
|
}
|
|
@@ -9,19 +9,25 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
13
|
-
import type { ContactsOrganizationIdentification } from './ContactsOrganizationIdentification';
|
|
12
|
+
import type { ContactIdentificationType } from './ContactIdentificationType';
|
|
14
13
|
/**
|
|
15
|
-
* @type ContactsIdentification
|
|
16
14
|
*
|
|
17
15
|
* @export
|
|
16
|
+
* @interface ContactsIdentification
|
|
18
17
|
*/
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
export interface ContactsIdentification {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ContactIdentificationType}
|
|
22
|
+
* @memberof ContactsIdentification
|
|
23
|
+
*/
|
|
24
|
+
type: ContactIdentificationType;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ContactsIdentification interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfContactsIdentification(value: object): value is ContactsIdentification;
|
|
24
30
|
export declare function ContactsIdentificationFromJSON(json: any): ContactsIdentification;
|
|
25
31
|
export declare function ContactsIdentificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactsIdentification;
|
|
26
|
-
export declare function ContactsIdentificationToJSON(json: any):
|
|
32
|
+
export declare function ContactsIdentificationToJSON(json: any): ContactsIdentification;
|
|
27
33
|
export declare function ContactsIdentificationToJSONTyped(value?: ContactsIdentification | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,12 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfContactsIdentification = instanceOfContactsIdentification;
|
|
16
17
|
exports.ContactsIdentificationFromJSON = ContactsIdentificationFromJSON;
|
|
17
18
|
exports.ContactsIdentificationFromJSONTyped = ContactsIdentificationFromJSONTyped;
|
|
18
19
|
exports.ContactsIdentificationToJSON = ContactsIdentificationToJSON;
|
|
19
20
|
exports.ContactsIdentificationToJSONTyped = ContactsIdentificationToJSONTyped;
|
|
21
|
+
const ContactIdentificationType_1 = require("./ContactIdentificationType");
|
|
20
22
|
const ContactsIndividualIdentification_1 = require("./ContactsIndividualIdentification");
|
|
21
23
|
const ContactsOrganizationIdentification_1 = require("./ContactsOrganizationIdentification");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ContactsIdentification interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfContactsIdentification(value) {
|
|
28
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
22
32
|
function ContactsIdentificationFromJSON(json) {
|
|
23
33
|
return ContactsIdentificationFromJSONTyped(json, false);
|
|
24
34
|
}
|
|
@@ -26,14 +36,17 @@ function ContactsIdentificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
36
|
if (json == null) {
|
|
27
37
|
return json;
|
|
28
38
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
if (!ignoreDiscriminator) {
|
|
40
|
+
if (json['type'] === 'INDIVIDUAL') {
|
|
41
|
+
return (0, ContactsIndividualIdentification_1.ContactsIndividualIdentificationFromJSONTyped)(json, ignoreDiscriminator);
|
|
42
|
+
}
|
|
43
|
+
if (json['type'] === 'ORGANIZATION') {
|
|
44
|
+
return (0, ContactsOrganizationIdentification_1.ContactsOrganizationIdentificationFromJSONTyped)(json, ignoreDiscriminator);
|
|
45
|
+
}
|
|
36
46
|
}
|
|
47
|
+
return {
|
|
48
|
+
'type': (0, ContactIdentificationType_1.ContactIdentificationTypeFromJSON)(json['type']),
|
|
49
|
+
};
|
|
37
50
|
}
|
|
38
51
|
function ContactsIdentificationToJSON(json) {
|
|
39
52
|
return ContactsIdentificationToJSONTyped(json, false);
|
|
@@ -42,12 +55,17 @@ function ContactsIdentificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
42
55
|
if (value == null) {
|
|
43
56
|
return value;
|
|
44
57
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
if (!ignoreDiscriminator) {
|
|
59
|
+
switch (value['type']) {
|
|
60
|
+
case 'INDIVIDUAL':
|
|
61
|
+
return (0, ContactsIndividualIdentification_1.ContactsIndividualIdentificationToJSONTyped)(value, ignoreDiscriminator);
|
|
62
|
+
case 'ORGANIZATION':
|
|
63
|
+
return (0, ContactsOrganizationIdentification_1.ContactsOrganizationIdentificationToJSONTyped)(value, ignoreDiscriminator);
|
|
64
|
+
default:
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
52
67
|
}
|
|
68
|
+
return {
|
|
69
|
+
'type': (0, ContactIdentificationType_1.ContactIdentificationTypeToJSON)(value['type']),
|
|
70
|
+
};
|
|
53
71
|
}
|