@equisoft/equisoft-connect-sdk-typescript 13.45.0 → 13.45.1-snapshot.20260311184303

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 (98) hide show
  1. package/.tool-versions +1 -1
  2. package/dist/esm/models/ContactsCreateIdentificationPayload.d.ts +15 -9
  3. package/dist/esm/models/ContactsCreateIdentificationPayload.js +33 -16
  4. package/dist/esm/models/ContactsCreateIndividualIdentificationPayload.d.ts +2 -8
  5. package/dist/esm/models/ContactsCreateIndividualIdentificationPayload.js +3 -29
  6. package/dist/esm/models/ContactsCreateOrganizationIdentificationPayload.d.ts +2 -8
  7. package/dist/esm/models/ContactsCreateOrganizationIdentificationPayload.js +3 -15
  8. package/dist/esm/models/ContactsIdentification.d.ts +15 -9
  9. package/dist/esm/models/ContactsIdentification.js +33 -16
  10. package/dist/esm/models/ContactsIndividualIdentification.d.ts +2 -8
  11. package/dist/esm/models/ContactsIndividualIdentification.js +3 -27
  12. package/dist/esm/models/ContactsOrganizationIdentification.d.ts +2 -8
  13. package/dist/esm/models/ContactsOrganizationIdentification.js +3 -15
  14. package/dist/esm/models/MovementClientBaseUsingDistributionListMovement.d.ts +2 -8
  15. package/dist/esm/models/MovementClientBaseUsingDistributionListMovement.js +3 -39
  16. package/dist/esm/models/MovementClientBaseUsingDistributionListMovementPayload.d.ts +2 -8
  17. package/dist/esm/models/MovementClientBaseUsingDistributionListMovementPayload.js +3 -23
  18. package/dist/esm/models/MovementClientBaseUsingFileMovement.d.ts +2 -8
  19. package/dist/esm/models/MovementClientBaseUsingFileMovement.js +3 -41
  20. package/dist/esm/models/MovementClientBaseUsingFileMovementPayload.d.ts +2 -8
  21. package/dist/esm/models/MovementClientBaseUsingFileMovementPayload.js +3 -25
  22. package/dist/esm/models/MovementCopyMovement.d.ts +2 -8
  23. package/dist/esm/models/MovementCopyMovement.js +3 -33
  24. package/dist/esm/models/MovementCopyMovementPayload.d.ts +2 -8
  25. package/dist/esm/models/MovementCopyMovementPayload.js +3 -19
  26. package/dist/esm/models/MovementMoveMovement.d.ts +2 -8
  27. package/dist/esm/models/MovementMoveMovement.js +3 -33
  28. package/dist/esm/models/MovementMoveMovementPayload.d.ts +2 -8
  29. package/dist/esm/models/MovementMoveMovementPayload.js +3 -19
  30. package/dist/esm/models/MovementMovement.d.ts +70 -15
  31. package/dist/esm/models/MovementMovement.js +64 -26
  32. package/dist/esm/models/MovementMovementPayload.d.ts +21 -15
  33. package/dist/esm/models/MovementMovementPayload.js +47 -26
  34. package/dist/models/ContactsCreateIdentificationPayload.d.ts +15 -9
  35. package/dist/models/ContactsCreateIdentificationPayload.js +32 -14
  36. package/dist/models/ContactsCreateIndividualIdentificationPayload.d.ts +2 -8
  37. package/dist/models/ContactsCreateIndividualIdentificationPayload.js +3 -29
  38. package/dist/models/ContactsCreateOrganizationIdentificationPayload.d.ts +2 -8
  39. package/dist/models/ContactsCreateOrganizationIdentificationPayload.js +3 -15
  40. package/dist/models/ContactsIdentification.d.ts +15 -9
  41. package/dist/models/ContactsIdentification.js +32 -14
  42. package/dist/models/ContactsIndividualIdentification.d.ts +2 -8
  43. package/dist/models/ContactsIndividualIdentification.js +3 -27
  44. package/dist/models/ContactsOrganizationIdentification.d.ts +2 -8
  45. package/dist/models/ContactsOrganizationIdentification.js +3 -15
  46. package/dist/models/MovementClientBaseUsingDistributionListMovement.d.ts +2 -8
  47. package/dist/models/MovementClientBaseUsingDistributionListMovement.js +3 -39
  48. package/dist/models/MovementClientBaseUsingDistributionListMovementPayload.d.ts +2 -8
  49. package/dist/models/MovementClientBaseUsingDistributionListMovementPayload.js +3 -23
  50. package/dist/models/MovementClientBaseUsingFileMovement.d.ts +2 -8
  51. package/dist/models/MovementClientBaseUsingFileMovement.js +3 -41
  52. package/dist/models/MovementClientBaseUsingFileMovementPayload.d.ts +2 -8
  53. package/dist/models/MovementClientBaseUsingFileMovementPayload.js +3 -25
  54. package/dist/models/MovementCopyMovement.d.ts +2 -8
  55. package/dist/models/MovementCopyMovement.js +3 -33
  56. package/dist/models/MovementCopyMovementPayload.d.ts +2 -8
  57. package/dist/models/MovementCopyMovementPayload.js +3 -19
  58. package/dist/models/MovementMoveMovement.d.ts +2 -8
  59. package/dist/models/MovementMoveMovement.js +3 -33
  60. package/dist/models/MovementMoveMovementPayload.d.ts +2 -8
  61. package/dist/models/MovementMoveMovementPayload.js +3 -19
  62. package/dist/models/MovementMovement.d.ts +70 -15
  63. package/dist/models/MovementMovement.js +61 -22
  64. package/dist/models/MovementMovementPayload.d.ts +21 -15
  65. package/dist/models/MovementMovementPayload.js +44 -22
  66. package/docs/ContactsCreateIdentificationPayload.md +0 -26
  67. package/docs/ContactsCreateIndividualIdentificationPayload.md +0 -2
  68. package/docs/ContactsCreateOrganizationIdentificationPayload.md +0 -2
  69. package/docs/ContactsIdentification.md +0 -24
  70. package/docs/ContactsIndividualIdentification.md +0 -2
  71. package/docs/ContactsOrganizationIdentification.md +0 -2
  72. package/docs/MovementClientBaseUsingDistributionListMovement.md +0 -2
  73. package/docs/MovementClientBaseUsingDistributionListMovementPayload.md +0 -2
  74. package/docs/MovementClientBaseUsingFileMovement.md +0 -2
  75. package/docs/MovementClientBaseUsingFileMovementPayload.md +0 -2
  76. package/docs/MovementCopyMovement.md +0 -2
  77. package/docs/MovementCopyMovementPayload.md +0 -2
  78. package/docs/MovementMoveMovement.md +0 -2
  79. package/docs/MovementMoveMovementPayload.md +0 -2
  80. package/docs/MovementMovement.md +0 -22
  81. package/docs/MovementMovementPayload.md +0 -24
  82. package/package.json +1 -1
  83. package/src/models/ContactsCreateIdentificationPayload.ts +56 -30
  84. package/src/models/ContactsCreateIndividualIdentificationPayload.ts +10 -12
  85. package/src/models/ContactsCreateOrganizationIdentificationPayload.ts +10 -12
  86. package/src/models/ContactsIdentification.ts +56 -30
  87. package/src/models/ContactsIndividualIdentification.ts +10 -12
  88. package/src/models/ContactsOrganizationIdentification.ts +10 -12
  89. package/src/models/MovementClientBaseUsingDistributionListMovement.ts +10 -12
  90. package/src/models/MovementClientBaseUsingDistributionListMovementPayload.ts +10 -12
  91. package/src/models/MovementClientBaseUsingFileMovement.ts +10 -12
  92. package/src/models/MovementClientBaseUsingFileMovementPayload.ts +10 -12
  93. package/src/models/MovementCopyMovement.ts +10 -12
  94. package/src/models/MovementCopyMovementPayload.ts +10 -12
  95. package/src/models/MovementMoveMovement.ts +10 -12
  96. package/src/models/MovementMoveMovementPayload.ts +10 -12
  97. package/src/models/MovementMovement.ts +146 -51
  98. package/src/models/MovementMovementPayload.ts +76 -52
package/.tool-versions CHANGED
@@ -1,3 +1,3 @@
1
1
  java temurin-21.0.10+7.0.LTS
2
- nodejs 24.13.1
2
+ nodejs 24.14.0
3
3
  yarn 1.22.4
@@ -9,19 +9,25 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ContactsCreateIndividualIdentificationPayload } from './ContactsCreateIndividualIdentificationPayload';
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 type ContactsCreateIdentificationPayload = {
20
- type: 'INDIVIDUAL';
21
- } & ContactsCreateIndividualIdentificationPayload | {
22
- type: 'ORGANIZATION';
23
- } & ContactsCreateOrganizationIdentificationPayload;
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): any;
32
+ export declare function ContactsCreateIdentificationPayloadToJSON(json: any): ContactsCreateIdentificationPayload;
27
33
  export declare function ContactsCreateIdentificationPayloadToJSONTyped(value?: ContactsCreateIdentificationPayload | null, ignoreDiscriminator?: boolean): any;
@@ -11,8 +11,17 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ContactsCreateIndividualIdentificationPayloadFromJSONTyped, ContactsCreateIndividualIdentificationPayloadToJSON, } from './ContactsCreateIndividualIdentificationPayload';
15
- import { ContactsCreateOrganizationIdentificationPayloadFromJSONTyped, ContactsCreateOrganizationIdentificationPayloadToJSON, } from './ContactsCreateOrganizationIdentificationPayload';
14
+ import { ContactIdentificationTypeFromJSON, ContactIdentificationTypeToJSON, } from './ContactIdentificationType';
15
+ import { ContactsCreateIndividualIdentificationPayloadFromJSONTyped, ContactsCreateIndividualIdentificationPayloadToJSONTyped } from './ContactsCreateIndividualIdentificationPayload';
16
+ import { ContactsCreateOrganizationIdentificationPayloadFromJSONTyped, ContactsCreateOrganizationIdentificationPayloadToJSONTyped } from './ContactsCreateOrganizationIdentificationPayload';
17
+ /**
18
+ * Check if a given object implements the ContactsCreateIdentificationPayload interface.
19
+ */
20
+ export function instanceOfContactsCreateIdentificationPayload(value) {
21
+ if (!('type' in value) || value['type'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
16
25
  export function ContactsCreateIdentificationPayloadFromJSON(json) {
17
26
  return ContactsCreateIdentificationPayloadFromJSONTyped(json, false);
18
27
  }
@@ -20,14 +29,17 @@ export function ContactsCreateIdentificationPayloadFromJSONTyped(json, ignoreDis
20
29
  if (json == null) {
21
30
  return json;
22
31
  }
23
- switch (json['type']) {
24
- case 'INDIVIDUAL':
25
- return Object.assign({}, ContactsCreateIndividualIdentificationPayloadFromJSONTyped(json, true), { type: 'INDIVIDUAL' });
26
- case 'ORGANIZATION':
27
- return Object.assign({}, ContactsCreateOrganizationIdentificationPayloadFromJSONTyped(json, true), { type: 'ORGANIZATION' });
28
- default:
29
- return json;
32
+ if (!ignoreDiscriminator) {
33
+ if (json['type'] === 'INDIVIDUAL') {
34
+ return ContactsCreateIndividualIdentificationPayloadFromJSONTyped(json, ignoreDiscriminator);
35
+ }
36
+ if (json['type'] === 'ORGANIZATION') {
37
+ return ContactsCreateOrganizationIdentificationPayloadFromJSONTyped(json, ignoreDiscriminator);
38
+ }
30
39
  }
40
+ return {
41
+ 'type': ContactIdentificationTypeFromJSON(json['type']),
42
+ };
31
43
  }
32
44
  export function ContactsCreateIdentificationPayloadToJSON(json) {
33
45
  return ContactsCreateIdentificationPayloadToJSONTyped(json, false);
@@ -36,12 +48,17 @@ export function ContactsCreateIdentificationPayloadToJSONTyped(value, ignoreDisc
36
48
  if (value == null) {
37
49
  return value;
38
50
  }
39
- switch (value['type']) {
40
- case 'INDIVIDUAL':
41
- return Object.assign({}, ContactsCreateIndividualIdentificationPayloadToJSON(value), { type: 'INDIVIDUAL' });
42
- case 'ORGANIZATION':
43
- return Object.assign({}, ContactsCreateOrganizationIdentificationPayloadToJSON(value), { type: 'ORGANIZATION' });
44
- default:
45
- return value;
51
+ if (!ignoreDiscriminator) {
52
+ switch (value['type']) {
53
+ case 'INDIVIDUAL':
54
+ return ContactsCreateIndividualIdentificationPayloadToJSONTyped(value, ignoreDiscriminator);
55
+ case 'ORGANIZATION':
56
+ return ContactsCreateOrganizationIdentificationPayloadToJSONTyped(value, ignoreDiscriminator);
57
+ default:
58
+ return value;
59
+ }
46
60
  }
61
+ return {
62
+ 'type': ContactIdentificationTypeToJSON(value['type']),
63
+ };
47
64
  }
@@ -9,19 +9,13 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ContactIdentificationType } from './ContactIdentificationType';
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}
@@ -11,13 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ContactIdentificationTypeFromJSON, ContactIdentificationTypeToJSON, } from './ContactIdentificationType';
14
+ import { ContactsCreateIdentificationPayloadFromJSONTyped, ContactsCreateIdentificationPayloadToJSONTyped, } from './ContactsCreateIdentificationPayload';
15
15
  /**
16
16
  * Check if a given object implements the ContactsCreateIndividualIdentificationPayload interface.
17
17
  */
18
18
  export function instanceOfContactsCreateIndividualIdentificationPayload(value) {
19
- if (!('type' in value) || value['type'] === undefined)
20
- return false;
21
19
  if (!('firstName' in value) || value['firstName'] === undefined)
22
20
  return false;
23
21
  if (!('lastName' in value) || value['lastName'] === undefined)
@@ -33,19 +31,7 @@ export function ContactsCreateIndividualIdentificationPayloadFromJSONTyped(json,
33
31
  if (json == null) {
34
32
  return json;
35
33
  }
36
- return {
37
- 'type': ContactIdentificationTypeFromJSON(json['type']),
38
- 'firstName': json['firstName'],
39
- 'lastName': json['lastName'],
40
- 'gender': json['gender'],
41
- 'title': json['title'] == null ? undefined : json['title'],
42
- 'middleName': json['middleName'] == null ? undefined : json['middleName'],
43
- 'maidenName': json['maidenName'] == null ? undefined : json['maidenName'],
44
- 'nickname': json['nickname'] == null ? undefined : json['nickname'],
45
- 'suffix': json['suffix'] == null ? undefined : json['suffix'],
46
- 'greeting': json['greeting'] == null ? undefined : json['greeting'],
47
- 'clientNumber': json['clientNumber'] == null ? undefined : json['clientNumber'],
48
- };
34
+ return Object.assign(Object.assign({}, 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'] });
49
35
  }
50
36
  export function ContactsCreateIndividualIdentificationPayloadToJSON(json) {
51
37
  return ContactsCreateIndividualIdentificationPayloadToJSONTyped(json, false);
@@ -54,17 +40,5 @@ export function ContactsCreateIndividualIdentificationPayloadToJSONTyped(value,
54
40
  if (value == null) {
55
41
  return value;
56
42
  }
57
- return {
58
- 'type': ContactIdentificationTypeToJSON(value['type']),
59
- 'firstName': value['firstName'],
60
- 'lastName': value['lastName'],
61
- 'gender': value['gender'],
62
- 'title': value['title'],
63
- 'middleName': value['middleName'],
64
- 'maidenName': value['maidenName'],
65
- 'nickname': value['nickname'],
66
- 'suffix': value['suffix'],
67
- 'greeting': value['greeting'],
68
- 'clientNumber': value['clientNumber'],
69
- };
43
+ return Object.assign(Object.assign({}, 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'] });
70
44
  }
@@ -9,19 +9,13 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ContactIdentificationType } from './ContactIdentificationType';
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}
@@ -11,13 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ContactIdentificationTypeFromJSON, ContactIdentificationTypeToJSON, } from './ContactIdentificationType';
14
+ import { ContactsCreateIdentificationPayloadFromJSONTyped, ContactsCreateIdentificationPayloadToJSONTyped, } from './ContactsCreateIdentificationPayload';
15
15
  /**
16
16
  * Check if a given object implements the ContactsCreateOrganizationIdentificationPayload interface.
17
17
  */
18
18
  export function instanceOfContactsCreateOrganizationIdentificationPayload(value) {
19
- if (!('type' in value) || value['type'] === undefined)
20
- return false;
21
19
  if (!('nameLine1' in value) || value['nameLine1'] === undefined)
22
20
  return false;
23
21
  if (!('abbreviation' in value) || value['abbreviation'] === undefined)
@@ -31,12 +29,7 @@ export function ContactsCreateOrganizationIdentificationPayloadFromJSONTyped(jso
31
29
  if (json == null) {
32
30
  return json;
33
31
  }
34
- return {
35
- 'type': ContactIdentificationTypeFromJSON(json['type']),
36
- 'nameLine1': json['nameLine1'],
37
- 'nameLine2': json['nameLine2'] == null ? undefined : json['nameLine2'],
38
- 'abbreviation': json['abbreviation'],
39
- };
32
+ return Object.assign(Object.assign({}, ContactsCreateIdentificationPayloadFromJSONTyped(json, true)), { 'nameLine1': json['nameLine1'], 'nameLine2': json['nameLine2'] == null ? undefined : json['nameLine2'], 'abbreviation': json['abbreviation'] });
40
33
  }
41
34
  export function ContactsCreateOrganizationIdentificationPayloadToJSON(json) {
42
35
  return ContactsCreateOrganizationIdentificationPayloadToJSONTyped(json, false);
@@ -45,10 +38,5 @@ export function ContactsCreateOrganizationIdentificationPayloadToJSONTyped(value
45
38
  if (value == null) {
46
39
  return value;
47
40
  }
48
- return {
49
- 'type': ContactIdentificationTypeToJSON(value['type']),
50
- 'nameLine1': value['nameLine1'],
51
- 'nameLine2': value['nameLine2'],
52
- 'abbreviation': value['abbreviation'],
53
- };
41
+ return Object.assign(Object.assign({}, ContactsCreateIdentificationPayloadToJSONTyped(value, true)), { 'nameLine1': value['nameLine1'], 'nameLine2': value['nameLine2'], 'abbreviation': value['abbreviation'] });
54
42
  }
@@ -9,19 +9,25 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ContactsIndividualIdentification } from './ContactsIndividualIdentification';
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 type ContactsIdentification = {
20
- type: 'INDIVIDUAL';
21
- } & ContactsIndividualIdentification | {
22
- type: 'ORGANIZATION';
23
- } & ContactsOrganizationIdentification;
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): any;
32
+ export declare function ContactsIdentificationToJSON(json: any): ContactsIdentification;
27
33
  export declare function ContactsIdentificationToJSONTyped(value?: ContactsIdentification | null, ignoreDiscriminator?: boolean): any;
@@ -11,8 +11,17 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ContactsIndividualIdentificationFromJSONTyped, ContactsIndividualIdentificationToJSON, } from './ContactsIndividualIdentification';
15
- import { ContactsOrganizationIdentificationFromJSONTyped, ContactsOrganizationIdentificationToJSON, } from './ContactsOrganizationIdentification';
14
+ import { ContactIdentificationTypeFromJSON, ContactIdentificationTypeToJSON, } from './ContactIdentificationType';
15
+ import { ContactsIndividualIdentificationFromJSONTyped, ContactsIndividualIdentificationToJSONTyped } from './ContactsIndividualIdentification';
16
+ import { ContactsOrganizationIdentificationFromJSONTyped, ContactsOrganizationIdentificationToJSONTyped } from './ContactsOrganizationIdentification';
17
+ /**
18
+ * Check if a given object implements the ContactsIdentification interface.
19
+ */
20
+ export function instanceOfContactsIdentification(value) {
21
+ if (!('type' in value) || value['type'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
16
25
  export function ContactsIdentificationFromJSON(json) {
17
26
  return ContactsIdentificationFromJSONTyped(json, false);
18
27
  }
@@ -20,14 +29,17 @@ export function ContactsIdentificationFromJSONTyped(json, ignoreDiscriminator) {
20
29
  if (json == null) {
21
30
  return json;
22
31
  }
23
- switch (json['type']) {
24
- case 'INDIVIDUAL':
25
- return Object.assign({}, ContactsIndividualIdentificationFromJSONTyped(json, true), { type: 'INDIVIDUAL' });
26
- case 'ORGANIZATION':
27
- return Object.assign({}, ContactsOrganizationIdentificationFromJSONTyped(json, true), { type: 'ORGANIZATION' });
28
- default:
29
- return json;
32
+ if (!ignoreDiscriminator) {
33
+ if (json['type'] === 'INDIVIDUAL') {
34
+ return ContactsIndividualIdentificationFromJSONTyped(json, ignoreDiscriminator);
35
+ }
36
+ if (json['type'] === 'ORGANIZATION') {
37
+ return ContactsOrganizationIdentificationFromJSONTyped(json, ignoreDiscriminator);
38
+ }
30
39
  }
40
+ return {
41
+ 'type': ContactIdentificationTypeFromJSON(json['type']),
42
+ };
31
43
  }
32
44
  export function ContactsIdentificationToJSON(json) {
33
45
  return ContactsIdentificationToJSONTyped(json, false);
@@ -36,12 +48,17 @@ export function ContactsIdentificationToJSONTyped(value, ignoreDiscriminator = f
36
48
  if (value == null) {
37
49
  return value;
38
50
  }
39
- switch (value['type']) {
40
- case 'INDIVIDUAL':
41
- return Object.assign({}, ContactsIndividualIdentificationToJSON(value), { type: 'INDIVIDUAL' });
42
- case 'ORGANIZATION':
43
- return Object.assign({}, ContactsOrganizationIdentificationToJSON(value), { type: 'ORGANIZATION' });
44
- default:
45
- return value;
51
+ if (!ignoreDiscriminator) {
52
+ switch (value['type']) {
53
+ case 'INDIVIDUAL':
54
+ return ContactsIndividualIdentificationToJSONTyped(value, ignoreDiscriminator);
55
+ case 'ORGANIZATION':
56
+ return ContactsOrganizationIdentificationToJSONTyped(value, ignoreDiscriminator);
57
+ default:
58
+ return value;
59
+ }
46
60
  }
61
+ return {
62
+ 'type': ContactIdentificationTypeToJSON(value['type']),
63
+ };
47
64
  }
@@ -9,20 +9,14 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ContactIdentificationType } from './ContactIdentificationType';
12
+ import type { ContactsIdentification } from './ContactsIdentification';
13
13
  import type { ContactsContactFieldValue } from './ContactsContactFieldValue';
14
14
  /**
15
15
  *
16
16
  * @export
17
17
  * @interface ContactsIndividualIdentification
18
18
  */
19
- export interface ContactsIndividualIdentification {
20
- /**
21
- *
22
- * @type {ContactIdentificationType}
23
- * @memberof ContactsIndividualIdentification
24
- */
25
- type: ContactIdentificationType;
19
+ export interface ContactsIndividualIdentification extends ContactsIdentification {
26
20
  /**
27
21
  *
28
22
  * @type {ContactsContactFieldValue}
@@ -11,14 +11,12 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ContactIdentificationTypeFromJSON, ContactIdentificationTypeToJSON, } from './ContactIdentificationType';
14
+ import { ContactsIdentificationFromJSONTyped, ContactsIdentificationToJSONTyped, } from './ContactsIdentification';
15
15
  import { ContactsContactFieldValueFromJSON, ContactsContactFieldValueToJSON, } from './ContactsContactFieldValue';
16
16
  /**
17
17
  * Check if a given object implements the ContactsIndividualIdentification interface.
18
18
  */
19
19
  export function instanceOfContactsIndividualIdentification(value) {
20
- if (!('type' in value) || value['type'] === undefined)
21
- return false;
22
20
  return true;
23
21
  }
24
22
  export function ContactsIndividualIdentificationFromJSON(json) {
@@ -28,18 +26,7 @@ export function ContactsIndividualIdentificationFromJSONTyped(json, ignoreDiscri
28
26
  if (json == null) {
29
27
  return json;
30
28
  }
31
- return {
32
- 'type': ContactIdentificationTypeFromJSON(json['type']),
33
- 'title': json['title'] == null ? undefined : ContactsContactFieldValueFromJSON(json['title']),
34
- 'gender': json['gender'] == null ? undefined : json['gender'],
35
- 'firstName': json['firstName'] == null ? undefined : json['firstName'],
36
- 'middleName': json['middleName'] == null ? undefined : json['middleName'],
37
- 'lastName': json['lastName'] == null ? undefined : json['lastName'],
38
- 'maidenName': json['maidenName'] == null ? undefined : json['maidenName'],
39
- 'suffix': json['suffix'] == null ? undefined : json['suffix'],
40
- 'greeting': json['greeting'] == null ? undefined : json['greeting'],
41
- 'clientNb': json['clientNb'] == null ? undefined : json['clientNb'],
42
- };
29
+ return Object.assign(Object.assign({}, ContactsIdentificationFromJSONTyped(json, true)), { 'title': json['title'] == null ? undefined : ContactsContactFieldValueFromJSON(json['title']), 'gender': json['gender'] == null ? undefined : json['gender'], 'firstName': json['firstName'] == null ? undefined : json['firstName'], 'middleName': json['middleName'] == null ? undefined : json['middleName'], 'lastName': json['lastName'] == null ? undefined : json['lastName'], 'maidenName': json['maidenName'] == null ? undefined : json['maidenName'], 'suffix': json['suffix'] == null ? undefined : json['suffix'], 'greeting': json['greeting'] == null ? undefined : json['greeting'], 'clientNb': json['clientNb'] == null ? undefined : json['clientNb'] });
43
30
  }
44
31
  export function ContactsIndividualIdentificationToJSON(json) {
45
32
  return ContactsIndividualIdentificationToJSONTyped(json, false);
@@ -48,16 +35,5 @@ export function ContactsIndividualIdentificationToJSONTyped(value, ignoreDiscrim
48
35
  if (value == null) {
49
36
  return value;
50
37
  }
51
- return {
52
- 'type': ContactIdentificationTypeToJSON(value['type']),
53
- 'title': ContactsContactFieldValueToJSON(value['title']),
54
- 'gender': value['gender'],
55
- 'firstName': value['firstName'],
56
- 'middleName': value['middleName'],
57
- 'lastName': value['lastName'],
58
- 'maidenName': value['maidenName'],
59
- 'suffix': value['suffix'],
60
- 'greeting': value['greeting'],
61
- 'clientNb': value['clientNb'],
62
- };
38
+ return Object.assign(Object.assign({}, ContactsIdentificationToJSONTyped(value, true)), { 'title': ContactsContactFieldValueToJSON(value['title']), 'gender': value['gender'], 'firstName': value['firstName'], 'middleName': value['middleName'], 'lastName': value['lastName'], 'maidenName': value['maidenName'], 'suffix': value['suffix'], 'greeting': value['greeting'], 'clientNb': value['clientNb'] });
63
39
  }
@@ -9,19 +9,13 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ContactIdentificationType } from './ContactIdentificationType';
12
+ import type { ContactsIdentification } from './ContactsIdentification';
13
13
  /**
14
14
  *
15
15
  * @export
16
16
  * @interface ContactsOrganizationIdentification
17
17
  */
18
- export interface ContactsOrganizationIdentification {
19
- /**
20
- *
21
- * @type {ContactIdentificationType}
22
- * @memberof ContactsOrganizationIdentification
23
- */
24
- type: ContactIdentificationType;
18
+ export interface ContactsOrganizationIdentification extends ContactsIdentification {
25
19
  /**
26
20
  * Organization's name line one
27
21
  * @type {string}
@@ -11,13 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ContactIdentificationTypeFromJSON, ContactIdentificationTypeToJSON, } from './ContactIdentificationType';
14
+ import { ContactsIdentificationFromJSONTyped, ContactsIdentificationToJSONTyped, } from './ContactsIdentification';
15
15
  /**
16
16
  * Check if a given object implements the ContactsOrganizationIdentification interface.
17
17
  */
18
18
  export function instanceOfContactsOrganizationIdentification(value) {
19
- if (!('type' in value) || value['type'] === undefined)
20
- return false;
21
19
  return true;
22
20
  }
23
21
  export function ContactsOrganizationIdentificationFromJSON(json) {
@@ -27,12 +25,7 @@ export function ContactsOrganizationIdentificationFromJSONTyped(json, ignoreDisc
27
25
  if (json == null) {
28
26
  return json;
29
27
  }
30
- return {
31
- 'type': ContactIdentificationTypeFromJSON(json['type']),
32
- 'nameLine1': json['nameLine1'] == null ? undefined : json['nameLine1'],
33
- 'nameLine2': json['nameLine2'] == null ? undefined : json['nameLine2'],
34
- 'abbreviation': json['abbreviation'] == null ? undefined : json['abbreviation'],
35
- };
28
+ return Object.assign(Object.assign({}, ContactsIdentificationFromJSONTyped(json, true)), { 'nameLine1': json['nameLine1'] == null ? undefined : json['nameLine1'], 'nameLine2': json['nameLine2'] == null ? undefined : json['nameLine2'], 'abbreviation': json['abbreviation'] == null ? undefined : json['abbreviation'] });
36
29
  }
37
30
  export function ContactsOrganizationIdentificationToJSON(json) {
38
31
  return ContactsOrganizationIdentificationToJSONTyped(json, false);
@@ -41,10 +34,5 @@ export function ContactsOrganizationIdentificationToJSONTyped(value, ignoreDiscr
41
34
  if (value == null) {
42
35
  return value;
43
36
  }
44
- return {
45
- 'type': ContactIdentificationTypeToJSON(value['type']),
46
- 'nameLine1': value['nameLine1'],
47
- 'nameLine2': value['nameLine2'],
48
- 'abbreviation': value['abbreviation'],
49
- };
37
+ return Object.assign(Object.assign({}, ContactsIdentificationToJSONTyped(value, true)), { 'nameLine1': value['nameLine1'], 'nameLine2': value['nameLine2'], 'abbreviation': value['abbreviation'] });
50
38
  }
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { MovementMovement } from './MovementMovement';
12
13
  import type { MovementTransferOption } from './MovementTransferOption';
13
- import type { MovementMovementType } from './MovementMovementType';
14
14
  import type { MovementDatabase } from './MovementDatabase';
15
15
  import type { MovementDistributionList } from './MovementDistributionList';
16
16
  import type { MovementUser } from './MovementUser';
@@ -19,13 +19,7 @@ import type { MovementUser } from './MovementUser';
19
19
  * @export
20
20
  * @interface MovementClientBaseUsingDistributionListMovement
21
21
  */
22
- export interface MovementClientBaseUsingDistributionListMovement {
23
- /**
24
- *
25
- * @type {MovementMovementType}
26
- * @memberof MovementClientBaseUsingDistributionListMovement
27
- */
28
- type: MovementMovementType;
22
+ export interface MovementClientBaseUsingDistributionListMovement extends MovementMovement {
29
23
  /**
30
24
  * Unique numerical identifier.
31
25
  * @type {number}
@@ -11,8 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { MovementMovementFromJSONTyped, MovementMovementToJSONTyped, } from './MovementMovement';
14
15
  import { MovementTransferOptionFromJSON, MovementTransferOptionToJSON, } from './MovementTransferOption';
15
- import { MovementMovementTypeFromJSON, MovementMovementTypeToJSON, } from './MovementMovementType';
16
16
  import { MovementDatabaseFromJSON, MovementDatabaseToJSON, } from './MovementDatabase';
17
17
  import { MovementDistributionListFromJSON, MovementDistributionListToJSON, } from './MovementDistributionList';
18
18
  import { MovementUserFromJSON, MovementUserToJSON, } from './MovementUser';
@@ -20,8 +20,6 @@ import { MovementUserFromJSON, MovementUserToJSON, } from './MovementUser';
20
20
  * Check if a given object implements the MovementClientBaseUsingDistributionListMovement interface.
21
21
  */
22
22
  export function instanceOfMovementClientBaseUsingDistributionListMovement(value) {
23
- if (!('type' in value) || value['type'] === undefined)
24
- return false;
25
23
  if (!('sourceDatabase' in value) || value['sourceDatabase'] === undefined)
26
24
  return false;
27
25
  if (!('sourceUser' in value) || value['sourceUser'] === undefined)
@@ -41,24 +39,7 @@ export function MovementClientBaseUsingDistributionListMovementFromJSONTyped(jso
41
39
  if (json == null) {
42
40
  return json;
43
41
  }
44
- return {
45
- 'type': MovementMovementTypeFromJSON(json['type']),
46
- 'id': json['id'] == null ? undefined : json['id'],
47
- 'status': json['status'] == null ? undefined : json['status'],
48
- 'availableAction': json['availableAction'] == null ? undefined : json['availableAction'],
49
- 'scheduledDate': json['scheduledDate'] == null ? undefined : json['scheduledDate'],
50
- 'processedDate': json['processedDate'] == null ? undefined : json['processedDate'],
51
- 'addedDate': json['addedDate'] == null ? undefined : json['addedDate'],
52
- 'addedBy': json['addedBy'] == null ? undefined : MovementUserFromJSON(json['addedBy']),
53
- 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'],
54
- 'cancelledBy': json['cancelledBy'] == null ? undefined : MovementUserFromJSON(json['cancelledBy']),
55
- 'sourceDatabase': MovementDatabaseFromJSON(json['sourceDatabase']),
56
- 'sourceUser': MovementUserFromJSON(json['sourceUser']),
57
- 'sourceDistributionList': json['sourceDistributionList'] == null ? undefined : MovementDistributionListFromJSON(json['sourceDistributionList']),
58
- 'destinationDatabase': MovementDatabaseFromJSON(json['destinationDatabase']),
59
- 'destinationUser': MovementUserFromJSON(json['destinationUser']),
60
- 'transferOption': MovementTransferOptionFromJSON(json['transferOption']),
61
- };
42
+ return Object.assign(Object.assign({}, MovementMovementFromJSONTyped(json, true)), { 'id': json['id'] == null ? undefined : json['id'], 'status': json['status'] == null ? undefined : json['status'], 'availableAction': json['availableAction'] == null ? undefined : json['availableAction'], 'scheduledDate': json['scheduledDate'] == null ? undefined : json['scheduledDate'], 'processedDate': json['processedDate'] == null ? undefined : json['processedDate'], 'addedDate': json['addedDate'] == null ? undefined : json['addedDate'], 'addedBy': json['addedBy'] == null ? undefined : MovementUserFromJSON(json['addedBy']), 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'], 'cancelledBy': json['cancelledBy'] == null ? undefined : MovementUserFromJSON(json['cancelledBy']), 'sourceDatabase': MovementDatabaseFromJSON(json['sourceDatabase']), 'sourceUser': MovementUserFromJSON(json['sourceUser']), 'sourceDistributionList': json['sourceDistributionList'] == null ? undefined : MovementDistributionListFromJSON(json['sourceDistributionList']), 'destinationDatabase': MovementDatabaseFromJSON(json['destinationDatabase']), 'destinationUser': MovementUserFromJSON(json['destinationUser']), 'transferOption': MovementTransferOptionFromJSON(json['transferOption']) });
62
43
  }
63
44
  export function MovementClientBaseUsingDistributionListMovementToJSON(json) {
64
45
  return MovementClientBaseUsingDistributionListMovementToJSONTyped(json, false);
@@ -67,22 +48,5 @@ export function MovementClientBaseUsingDistributionListMovementToJSONTyped(value
67
48
  if (value == null) {
68
49
  return value;
69
50
  }
70
- return {
71
- 'type': MovementMovementTypeToJSON(value['type']),
72
- 'id': value['id'],
73
- 'status': value['status'],
74
- 'availableAction': value['availableAction'],
75
- 'scheduledDate': value['scheduledDate'],
76
- 'processedDate': value['processedDate'],
77
- 'addedDate': value['addedDate'],
78
- 'addedBy': MovementUserToJSON(value['addedBy']),
79
- 'cancelledDate': value['cancelledDate'],
80
- 'cancelledBy': MovementUserToJSON(value['cancelledBy']),
81
- 'sourceDatabase': MovementDatabaseToJSON(value['sourceDatabase']),
82
- 'sourceUser': MovementUserToJSON(value['sourceUser']),
83
- 'sourceDistributionList': MovementDistributionListToJSON(value['sourceDistributionList']),
84
- 'destinationDatabase': MovementDatabaseToJSON(value['destinationDatabase']),
85
- 'destinationUser': MovementUserToJSON(value['destinationUser']),
86
- 'transferOption': MovementTransferOptionToJSON(value['transferOption']),
87
- };
51
+ return Object.assign(Object.assign({}, MovementMovementToJSONTyped(value, true)), { 'id': value['id'], 'status': value['status'], 'availableAction': value['availableAction'], 'scheduledDate': value['scheduledDate'], 'processedDate': value['processedDate'], 'addedDate': value['addedDate'], 'addedBy': MovementUserToJSON(value['addedBy']), 'cancelledDate': value['cancelledDate'], 'cancelledBy': MovementUserToJSON(value['cancelledBy']), 'sourceDatabase': MovementDatabaseToJSON(value['sourceDatabase']), 'sourceUser': MovementUserToJSON(value['sourceUser']), 'sourceDistributionList': MovementDistributionListToJSON(value['sourceDistributionList']), 'destinationDatabase': MovementDatabaseToJSON(value['destinationDatabase']), 'destinationUser': MovementUserToJSON(value['destinationUser']), 'transferOption': MovementTransferOptionToJSON(value['transferOption']) });
88
52
  }
@@ -9,19 +9,13 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MovementMovementType } from './MovementMovementType';
12
+ import type { MovementMovementPayload } from './MovementMovementPayload';
13
13
  /**
14
14
  *
15
15
  * @export
16
16
  * @interface MovementClientBaseUsingDistributionListMovementPayload
17
17
  */
18
- export interface MovementClientBaseUsingDistributionListMovementPayload {
19
- /**
20
- *
21
- * @type {MovementMovementType}
22
- * @memberof MovementClientBaseUsingDistributionListMovementPayload
23
- */
24
- type: MovementMovementType;
18
+ export interface MovementClientBaseUsingDistributionListMovementPayload extends MovementMovementPayload {
25
19
  /**
26
20
  * Movement date.
27
21
  * @type {string}