@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.
Files changed (97) hide show
  1. package/dist/esm/models/ContactsCreateIdentificationPayload.d.ts +15 -9
  2. package/dist/esm/models/ContactsCreateIdentificationPayload.js +33 -16
  3. package/dist/esm/models/ContactsCreateIndividualIdentificationPayload.d.ts +2 -8
  4. package/dist/esm/models/ContactsCreateIndividualIdentificationPayload.js +3 -29
  5. package/dist/esm/models/ContactsCreateOrganizationIdentificationPayload.d.ts +2 -8
  6. package/dist/esm/models/ContactsCreateOrganizationIdentificationPayload.js +3 -15
  7. package/dist/esm/models/ContactsIdentification.d.ts +15 -9
  8. package/dist/esm/models/ContactsIdentification.js +33 -16
  9. package/dist/esm/models/ContactsIndividualIdentification.d.ts +2 -8
  10. package/dist/esm/models/ContactsIndividualIdentification.js +3 -27
  11. package/dist/esm/models/ContactsOrganizationIdentification.d.ts +2 -8
  12. package/dist/esm/models/ContactsOrganizationIdentification.js +3 -15
  13. package/dist/esm/models/MovementClientBaseUsingDistributionListMovement.d.ts +2 -8
  14. package/dist/esm/models/MovementClientBaseUsingDistributionListMovement.js +3 -39
  15. package/dist/esm/models/MovementClientBaseUsingDistributionListMovementPayload.d.ts +2 -8
  16. package/dist/esm/models/MovementClientBaseUsingDistributionListMovementPayload.js +3 -23
  17. package/dist/esm/models/MovementClientBaseUsingFileMovement.d.ts +2 -8
  18. package/dist/esm/models/MovementClientBaseUsingFileMovement.js +3 -41
  19. package/dist/esm/models/MovementClientBaseUsingFileMovementPayload.d.ts +2 -8
  20. package/dist/esm/models/MovementClientBaseUsingFileMovementPayload.js +3 -25
  21. package/dist/esm/models/MovementCopyMovement.d.ts +2 -8
  22. package/dist/esm/models/MovementCopyMovement.js +3 -33
  23. package/dist/esm/models/MovementCopyMovementPayload.d.ts +2 -8
  24. package/dist/esm/models/MovementCopyMovementPayload.js +3 -19
  25. package/dist/esm/models/MovementMoveMovement.d.ts +2 -8
  26. package/dist/esm/models/MovementMoveMovement.js +3 -33
  27. package/dist/esm/models/MovementMoveMovementPayload.d.ts +2 -8
  28. package/dist/esm/models/MovementMoveMovementPayload.js +3 -19
  29. package/dist/esm/models/MovementMovement.d.ts +70 -15
  30. package/dist/esm/models/MovementMovement.js +64 -26
  31. package/dist/esm/models/MovementMovementPayload.d.ts +21 -15
  32. package/dist/esm/models/MovementMovementPayload.js +47 -26
  33. package/dist/models/ContactsCreateIdentificationPayload.d.ts +15 -9
  34. package/dist/models/ContactsCreateIdentificationPayload.js +32 -14
  35. package/dist/models/ContactsCreateIndividualIdentificationPayload.d.ts +2 -8
  36. package/dist/models/ContactsCreateIndividualIdentificationPayload.js +3 -29
  37. package/dist/models/ContactsCreateOrganizationIdentificationPayload.d.ts +2 -8
  38. package/dist/models/ContactsCreateOrganizationIdentificationPayload.js +3 -15
  39. package/dist/models/ContactsIdentification.d.ts +15 -9
  40. package/dist/models/ContactsIdentification.js +32 -14
  41. package/dist/models/ContactsIndividualIdentification.d.ts +2 -8
  42. package/dist/models/ContactsIndividualIdentification.js +3 -27
  43. package/dist/models/ContactsOrganizationIdentification.d.ts +2 -8
  44. package/dist/models/ContactsOrganizationIdentification.js +3 -15
  45. package/dist/models/MovementClientBaseUsingDistributionListMovement.d.ts +2 -8
  46. package/dist/models/MovementClientBaseUsingDistributionListMovement.js +3 -39
  47. package/dist/models/MovementClientBaseUsingDistributionListMovementPayload.d.ts +2 -8
  48. package/dist/models/MovementClientBaseUsingDistributionListMovementPayload.js +3 -23
  49. package/dist/models/MovementClientBaseUsingFileMovement.d.ts +2 -8
  50. package/dist/models/MovementClientBaseUsingFileMovement.js +3 -41
  51. package/dist/models/MovementClientBaseUsingFileMovementPayload.d.ts +2 -8
  52. package/dist/models/MovementClientBaseUsingFileMovementPayload.js +3 -25
  53. package/dist/models/MovementCopyMovement.d.ts +2 -8
  54. package/dist/models/MovementCopyMovement.js +3 -33
  55. package/dist/models/MovementCopyMovementPayload.d.ts +2 -8
  56. package/dist/models/MovementCopyMovementPayload.js +3 -19
  57. package/dist/models/MovementMoveMovement.d.ts +2 -8
  58. package/dist/models/MovementMoveMovement.js +3 -33
  59. package/dist/models/MovementMoveMovementPayload.d.ts +2 -8
  60. package/dist/models/MovementMoveMovementPayload.js +3 -19
  61. package/dist/models/MovementMovement.d.ts +70 -15
  62. package/dist/models/MovementMovement.js +61 -22
  63. package/dist/models/MovementMovementPayload.d.ts +21 -15
  64. package/dist/models/MovementMovementPayload.js +44 -22
  65. package/docs/ContactsCreateIdentificationPayload.md +0 -26
  66. package/docs/ContactsCreateIndividualIdentificationPayload.md +0 -2
  67. package/docs/ContactsCreateOrganizationIdentificationPayload.md +0 -2
  68. package/docs/ContactsIdentification.md +0 -24
  69. package/docs/ContactsIndividualIdentification.md +0 -2
  70. package/docs/ContactsOrganizationIdentification.md +0 -2
  71. package/docs/MovementClientBaseUsingDistributionListMovement.md +0 -2
  72. package/docs/MovementClientBaseUsingDistributionListMovementPayload.md +0 -2
  73. package/docs/MovementClientBaseUsingFileMovement.md +0 -2
  74. package/docs/MovementClientBaseUsingFileMovementPayload.md +0 -2
  75. package/docs/MovementCopyMovement.md +0 -2
  76. package/docs/MovementCopyMovementPayload.md +0 -2
  77. package/docs/MovementMoveMovement.md +0 -2
  78. package/docs/MovementMoveMovementPayload.md +0 -2
  79. package/docs/MovementMovement.md +0 -22
  80. package/docs/MovementMovementPayload.md +0 -24
  81. package/package.json +1 -1
  82. package/src/models/ContactsCreateIdentificationPayload.ts +56 -30
  83. package/src/models/ContactsCreateIndividualIdentificationPayload.ts +10 -12
  84. package/src/models/ContactsCreateOrganizationIdentificationPayload.ts +10 -12
  85. package/src/models/ContactsIdentification.ts +56 -30
  86. package/src/models/ContactsIndividualIdentification.ts +10 -12
  87. package/src/models/ContactsOrganizationIdentification.ts +10 -12
  88. package/src/models/MovementClientBaseUsingDistributionListMovement.ts +10 -12
  89. package/src/models/MovementClientBaseUsingDistributionListMovementPayload.ts +10 -12
  90. package/src/models/MovementClientBaseUsingFileMovement.ts +10 -12
  91. package/src/models/MovementClientBaseUsingFileMovementPayload.ts +10 -12
  92. package/src/models/MovementCopyMovement.ts +10 -12
  93. package/src/models/MovementCopyMovementPayload.ts +10 -12
  94. package/src/models/MovementMoveMovement.ts +10 -12
  95. package/src/models/MovementMoveMovementPayload.ts +10 -12
  96. package/src/models/MovementMovement.ts +146 -51
  97. package/src/models/MovementMovementPayload.ts +76 -52
@@ -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}
@@ -18,14 +18,12 @@ exports.ContactsIndividualIdentificationFromJSON = ContactsIndividualIdentificat
18
18
  exports.ContactsIndividualIdentificationFromJSONTyped = ContactsIndividualIdentificationFromJSONTyped;
19
19
  exports.ContactsIndividualIdentificationToJSON = ContactsIndividualIdentificationToJSON;
20
20
  exports.ContactsIndividualIdentificationToJSONTyped = ContactsIndividualIdentificationToJSONTyped;
21
- const ContactIdentificationType_1 = require("./ContactIdentificationType");
21
+ const ContactsIdentification_1 = require("./ContactsIdentification");
22
22
  const ContactsContactFieldValue_1 = require("./ContactsContactFieldValue");
23
23
  /**
24
24
  * Check if a given object implements the ContactsIndividualIdentification interface.
25
25
  */
26
26
  function instanceOfContactsIndividualIdentification(value) {
27
- if (!('type' in value) || value['type'] === undefined)
28
- return false;
29
27
  return true;
30
28
  }
31
29
  function ContactsIndividualIdentificationFromJSON(json) {
@@ -35,18 +33,7 @@ function ContactsIndividualIdentificationFromJSONTyped(json, ignoreDiscriminator
35
33
  if (json == null) {
36
34
  return json;
37
35
  }
38
- return {
39
- 'type': (0, ContactIdentificationType_1.ContactIdentificationTypeFromJSON)(json['type']),
40
- 'title': json['title'] == null ? undefined : (0, ContactsContactFieldValue_1.ContactsContactFieldValueFromJSON)(json['title']),
41
- 'gender': json['gender'] == null ? undefined : json['gender'],
42
- 'firstName': json['firstName'] == null ? undefined : json['firstName'],
43
- 'middleName': json['middleName'] == null ? undefined : json['middleName'],
44
- 'lastName': json['lastName'] == null ? undefined : json['lastName'],
45
- 'maidenName': json['maidenName'] == null ? undefined : json['maidenName'],
46
- 'suffix': json['suffix'] == null ? undefined : json['suffix'],
47
- 'greeting': json['greeting'] == null ? undefined : json['greeting'],
48
- 'clientNb': json['clientNb'] == null ? undefined : json['clientNb'],
49
- };
36
+ return Object.assign(Object.assign({}, (0, ContactsIdentification_1.ContactsIdentificationFromJSONTyped)(json, true)), { 'title': json['title'] == null ? undefined : (0, ContactsContactFieldValue_1.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'] });
50
37
  }
51
38
  function ContactsIndividualIdentificationToJSON(json) {
52
39
  return ContactsIndividualIdentificationToJSONTyped(json, false);
@@ -55,16 +42,5 @@ function ContactsIndividualIdentificationToJSONTyped(value, ignoreDiscriminator
55
42
  if (value == null) {
56
43
  return value;
57
44
  }
58
- return {
59
- 'type': (0, ContactIdentificationType_1.ContactIdentificationTypeToJSON)(value['type']),
60
- 'title': (0, ContactsContactFieldValue_1.ContactsContactFieldValueToJSON)(value['title']),
61
- 'gender': value['gender'],
62
- 'firstName': value['firstName'],
63
- 'middleName': value['middleName'],
64
- 'lastName': value['lastName'],
65
- 'maidenName': value['maidenName'],
66
- 'suffix': value['suffix'],
67
- 'greeting': value['greeting'],
68
- 'clientNb': value['clientNb'],
69
- };
45
+ return Object.assign(Object.assign({}, (0, ContactsIdentification_1.ContactsIdentificationToJSONTyped)(value, true)), { 'title': (0, ContactsContactFieldValue_1.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'] });
70
46
  }
@@ -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}
@@ -18,13 +18,11 @@ exports.ContactsOrganizationIdentificationFromJSON = ContactsOrganizationIdentif
18
18
  exports.ContactsOrganizationIdentificationFromJSONTyped = ContactsOrganizationIdentificationFromJSONTyped;
19
19
  exports.ContactsOrganizationIdentificationToJSON = ContactsOrganizationIdentificationToJSON;
20
20
  exports.ContactsOrganizationIdentificationToJSONTyped = ContactsOrganizationIdentificationToJSONTyped;
21
- const ContactIdentificationType_1 = require("./ContactIdentificationType");
21
+ const ContactsIdentification_1 = require("./ContactsIdentification");
22
22
  /**
23
23
  * Check if a given object implements the ContactsOrganizationIdentification interface.
24
24
  */
25
25
  function instanceOfContactsOrganizationIdentification(value) {
26
- if (!('type' in value) || value['type'] === undefined)
27
- return false;
28
26
  return true;
29
27
  }
30
28
  function ContactsOrganizationIdentificationFromJSON(json) {
@@ -34,12 +32,7 @@ function ContactsOrganizationIdentificationFromJSONTyped(json, ignoreDiscriminat
34
32
  if (json == null) {
35
33
  return json;
36
34
  }
37
- return {
38
- 'type': (0, ContactIdentificationType_1.ContactIdentificationTypeFromJSON)(json['type']),
39
- 'nameLine1': json['nameLine1'] == null ? undefined : json['nameLine1'],
40
- 'nameLine2': json['nameLine2'] == null ? undefined : json['nameLine2'],
41
- 'abbreviation': json['abbreviation'] == null ? undefined : json['abbreviation'],
42
- };
35
+ return Object.assign(Object.assign({}, (0, ContactsIdentification_1.ContactsIdentificationFromJSONTyped)(json, true)), { 'nameLine1': json['nameLine1'] == null ? undefined : json['nameLine1'], 'nameLine2': json['nameLine2'] == null ? undefined : json['nameLine2'], 'abbreviation': json['abbreviation'] == null ? undefined : json['abbreviation'] });
43
36
  }
44
37
  function ContactsOrganizationIdentificationToJSON(json) {
45
38
  return ContactsOrganizationIdentificationToJSONTyped(json, false);
@@ -48,10 +41,5 @@ function ContactsOrganizationIdentificationToJSONTyped(value, ignoreDiscriminato
48
41
  if (value == null) {
49
42
  return value;
50
43
  }
51
- return {
52
- 'type': (0, ContactIdentificationType_1.ContactIdentificationTypeToJSON)(value['type']),
53
- 'nameLine1': value['nameLine1'],
54
- 'nameLine2': value['nameLine2'],
55
- 'abbreviation': value['abbreviation'],
56
- };
44
+ return Object.assign(Object.assign({}, (0, ContactsIdentification_1.ContactsIdentificationToJSONTyped)(value, true)), { 'nameLine1': value['nameLine1'], 'nameLine2': value['nameLine2'], 'abbreviation': value['abbreviation'] });
57
45
  }
@@ -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}
@@ -18,8 +18,8 @@ exports.MovementClientBaseUsingDistributionListMovementFromJSON = MovementClient
18
18
  exports.MovementClientBaseUsingDistributionListMovementFromJSONTyped = MovementClientBaseUsingDistributionListMovementFromJSONTyped;
19
19
  exports.MovementClientBaseUsingDistributionListMovementToJSON = MovementClientBaseUsingDistributionListMovementToJSON;
20
20
  exports.MovementClientBaseUsingDistributionListMovementToJSONTyped = MovementClientBaseUsingDistributionListMovementToJSONTyped;
21
+ const MovementMovement_1 = require("./MovementMovement");
21
22
  const MovementTransferOption_1 = require("./MovementTransferOption");
22
- const MovementMovementType_1 = require("./MovementMovementType");
23
23
  const MovementDatabase_1 = require("./MovementDatabase");
24
24
  const MovementDistributionList_1 = require("./MovementDistributionList");
25
25
  const MovementUser_1 = require("./MovementUser");
@@ -27,8 +27,6 @@ const MovementUser_1 = require("./MovementUser");
27
27
  * Check if a given object implements the MovementClientBaseUsingDistributionListMovement interface.
28
28
  */
29
29
  function instanceOfMovementClientBaseUsingDistributionListMovement(value) {
30
- if (!('type' in value) || value['type'] === undefined)
31
- return false;
32
30
  if (!('sourceDatabase' in value) || value['sourceDatabase'] === undefined)
33
31
  return false;
34
32
  if (!('sourceUser' in value) || value['sourceUser'] === undefined)
@@ -48,24 +46,7 @@ function MovementClientBaseUsingDistributionListMovementFromJSONTyped(json, igno
48
46
  if (json == null) {
49
47
  return json;
50
48
  }
51
- return {
52
- 'type': (0, MovementMovementType_1.MovementMovementTypeFromJSON)(json['type']),
53
- 'id': json['id'] == null ? undefined : json['id'],
54
- 'status': json['status'] == null ? undefined : json['status'],
55
- 'availableAction': json['availableAction'] == null ? undefined : json['availableAction'],
56
- 'scheduledDate': json['scheduledDate'] == null ? undefined : json['scheduledDate'],
57
- 'processedDate': json['processedDate'] == null ? undefined : json['processedDate'],
58
- 'addedDate': json['addedDate'] == null ? undefined : json['addedDate'],
59
- 'addedBy': json['addedBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['addedBy']),
60
- 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'],
61
- 'cancelledBy': json['cancelledBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['cancelledBy']),
62
- 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['sourceDatabase']),
63
- 'sourceUser': (0, MovementUser_1.MovementUserFromJSON)(json['sourceUser']),
64
- 'sourceDistributionList': json['sourceDistributionList'] == null ? undefined : (0, MovementDistributionList_1.MovementDistributionListFromJSON)(json['sourceDistributionList']),
65
- 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['destinationDatabase']),
66
- 'destinationUser': (0, MovementUser_1.MovementUserFromJSON)(json['destinationUser']),
67
- 'transferOption': (0, MovementTransferOption_1.MovementTransferOptionFromJSON)(json['transferOption']),
68
- };
49
+ return Object.assign(Object.assign({}, (0, MovementMovement_1.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 : (0, MovementUser_1.MovementUserFromJSON)(json['addedBy']), 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'], 'cancelledBy': json['cancelledBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['cancelledBy']), 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['sourceDatabase']), 'sourceUser': (0, MovementUser_1.MovementUserFromJSON)(json['sourceUser']), 'sourceDistributionList': json['sourceDistributionList'] == null ? undefined : (0, MovementDistributionList_1.MovementDistributionListFromJSON)(json['sourceDistributionList']), 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['destinationDatabase']), 'destinationUser': (0, MovementUser_1.MovementUserFromJSON)(json['destinationUser']), 'transferOption': (0, MovementTransferOption_1.MovementTransferOptionFromJSON)(json['transferOption']) });
69
50
  }
70
51
  function MovementClientBaseUsingDistributionListMovementToJSON(json) {
71
52
  return MovementClientBaseUsingDistributionListMovementToJSONTyped(json, false);
@@ -74,22 +55,5 @@ function MovementClientBaseUsingDistributionListMovementToJSONTyped(value, ignor
74
55
  if (value == null) {
75
56
  return value;
76
57
  }
77
- return {
78
- 'type': (0, MovementMovementType_1.MovementMovementTypeToJSON)(value['type']),
79
- 'id': value['id'],
80
- 'status': value['status'],
81
- 'availableAction': value['availableAction'],
82
- 'scheduledDate': value['scheduledDate'],
83
- 'processedDate': value['processedDate'],
84
- 'addedDate': value['addedDate'],
85
- 'addedBy': (0, MovementUser_1.MovementUserToJSON)(value['addedBy']),
86
- 'cancelledDate': value['cancelledDate'],
87
- 'cancelledBy': (0, MovementUser_1.MovementUserToJSON)(value['cancelledBy']),
88
- 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['sourceDatabase']),
89
- 'sourceUser': (0, MovementUser_1.MovementUserToJSON)(value['sourceUser']),
90
- 'sourceDistributionList': (0, MovementDistributionList_1.MovementDistributionListToJSON)(value['sourceDistributionList']),
91
- 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['destinationDatabase']),
92
- 'destinationUser': (0, MovementUser_1.MovementUserToJSON)(value['destinationUser']),
93
- 'transferOption': (0, MovementTransferOption_1.MovementTransferOptionToJSON)(value['transferOption']),
94
- };
58
+ return Object.assign(Object.assign({}, (0, MovementMovement_1.MovementMovementToJSONTyped)(value, true)), { 'id': value['id'], 'status': value['status'], 'availableAction': value['availableAction'], 'scheduledDate': value['scheduledDate'], 'processedDate': value['processedDate'], 'addedDate': value['addedDate'], 'addedBy': (0, MovementUser_1.MovementUserToJSON)(value['addedBy']), 'cancelledDate': value['cancelledDate'], 'cancelledBy': (0, MovementUser_1.MovementUserToJSON)(value['cancelledBy']), 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['sourceDatabase']), 'sourceUser': (0, MovementUser_1.MovementUserToJSON)(value['sourceUser']), 'sourceDistributionList': (0, MovementDistributionList_1.MovementDistributionListToJSON)(value['sourceDistributionList']), 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['destinationDatabase']), 'destinationUser': (0, MovementUser_1.MovementUserToJSON)(value['destinationUser']), 'transferOption': (0, MovementTransferOption_1.MovementTransferOptionToJSON)(value['transferOption']) });
95
59
  }
@@ -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}
@@ -19,7 +19,7 @@ exports.MovementClientBaseUsingDistributionListMovementPayloadFromJSON = Movemen
19
19
  exports.MovementClientBaseUsingDistributionListMovementPayloadFromJSONTyped = MovementClientBaseUsingDistributionListMovementPayloadFromJSONTyped;
20
20
  exports.MovementClientBaseUsingDistributionListMovementPayloadToJSON = MovementClientBaseUsingDistributionListMovementPayloadToJSON;
21
21
  exports.MovementClientBaseUsingDistributionListMovementPayloadToJSONTyped = MovementClientBaseUsingDistributionListMovementPayloadToJSONTyped;
22
- const MovementMovementType_1 = require("./MovementMovementType");
22
+ const MovementMovementPayload_1 = require("./MovementMovementPayload");
23
23
  /**
24
24
  * @export
25
25
  */
@@ -32,8 +32,6 @@ exports.MovementClientBaseUsingDistributionListMovementPayloadTransferOptionEnum
32
32
  * Check if a given object implements the MovementClientBaseUsingDistributionListMovementPayload interface.
33
33
  */
34
34
  function instanceOfMovementClientBaseUsingDistributionListMovementPayload(value) {
35
- if (!('type' in value) || value['type'] === undefined)
36
- return false;
37
35
  if (!('sourceDatabase' in value) || value['sourceDatabase'] === undefined)
38
36
  return false;
39
37
  if (!('sourceUser' in value) || value['sourceUser'] === undefined)
@@ -53,16 +51,7 @@ function MovementClientBaseUsingDistributionListMovementPayloadFromJSONTyped(jso
53
51
  if (json == null) {
54
52
  return json;
55
53
  }
56
- return {
57
- 'type': (0, MovementMovementType_1.MovementMovementTypeFromJSON)(json['type']),
58
- 'date': json['date'] == null ? undefined : json['date'],
59
- 'sourceDatabase': json['sourceDatabase'],
60
- 'sourceUser': json['sourceUser'],
61
- 'sourceDistributionList': json['sourceDistributionList'] == null ? undefined : json['sourceDistributionList'],
62
- 'destinationDatabase': json['destinationDatabase'],
63
- 'destinationUser': json['destinationUser'],
64
- 'transferOption': json['transferOption'],
65
- };
54
+ return Object.assign(Object.assign({}, (0, MovementMovementPayload_1.MovementMovementPayloadFromJSONTyped)(json, true)), { 'date': json['date'] == null ? undefined : json['date'], 'sourceDatabase': json['sourceDatabase'], 'sourceUser': json['sourceUser'], 'sourceDistributionList': json['sourceDistributionList'] == null ? undefined : json['sourceDistributionList'], 'destinationDatabase': json['destinationDatabase'], 'destinationUser': json['destinationUser'], 'transferOption': json['transferOption'] });
66
55
  }
67
56
  function MovementClientBaseUsingDistributionListMovementPayloadToJSON(json) {
68
57
  return MovementClientBaseUsingDistributionListMovementPayloadToJSONTyped(json, false);
@@ -71,14 +60,5 @@ function MovementClientBaseUsingDistributionListMovementPayloadToJSONTyped(value
71
60
  if (value == null) {
72
61
  return value;
73
62
  }
74
- return {
75
- 'type': (0, MovementMovementType_1.MovementMovementTypeToJSON)(value['type']),
76
- 'date': value['date'],
77
- 'sourceDatabase': value['sourceDatabase'],
78
- 'sourceUser': value['sourceUser'],
79
- 'sourceDistributionList': value['sourceDistributionList'],
80
- 'destinationDatabase': value['destinationDatabase'],
81
- 'destinationUser': value['destinationUser'],
82
- 'transferOption': value['transferOption'],
83
- };
63
+ return Object.assign(Object.assign({}, (0, MovementMovementPayload_1.MovementMovementPayloadToJSONTyped)(value, true)), { 'date': value['date'], 'sourceDatabase': value['sourceDatabase'], 'sourceUser': value['sourceUser'], 'sourceDistributionList': value['sourceDistributionList'], 'destinationDatabase': value['destinationDatabase'], 'destinationUser': value['destinationUser'], 'transferOption': value['transferOption'] });
84
64
  }
@@ -9,7 +9,7 @@
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 { MovementMovement } from './MovementMovement';
13
13
  import type { MovementDatabase } from './MovementDatabase';
14
14
  import type { MovementUser } from './MovementUser';
15
15
  /**
@@ -17,13 +17,7 @@ import type { MovementUser } from './MovementUser';
17
17
  * @export
18
18
  * @interface MovementClientBaseUsingFileMovement
19
19
  */
20
- export interface MovementClientBaseUsingFileMovement {
21
- /**
22
- *
23
- * @type {MovementMovementType}
24
- * @memberof MovementClientBaseUsingFileMovement
25
- */
26
- type: MovementMovementType;
20
+ export interface MovementClientBaseUsingFileMovement extends MovementMovement {
27
21
  /**
28
22
  * Unique numerical identifier.
29
23
  * @type {number}
@@ -18,15 +18,13 @@ exports.MovementClientBaseUsingFileMovementFromJSON = MovementClientBaseUsingFil
18
18
  exports.MovementClientBaseUsingFileMovementFromJSONTyped = MovementClientBaseUsingFileMovementFromJSONTyped;
19
19
  exports.MovementClientBaseUsingFileMovementToJSON = MovementClientBaseUsingFileMovementToJSON;
20
20
  exports.MovementClientBaseUsingFileMovementToJSONTyped = MovementClientBaseUsingFileMovementToJSONTyped;
21
- const MovementMovementType_1 = require("./MovementMovementType");
21
+ const MovementMovement_1 = require("./MovementMovement");
22
22
  const MovementDatabase_1 = require("./MovementDatabase");
23
23
  const MovementUser_1 = require("./MovementUser");
24
24
  /**
25
25
  * Check if a given object implements the MovementClientBaseUsingFileMovement interface.
26
26
  */
27
27
  function instanceOfMovementClientBaseUsingFileMovement(value) {
28
- if (!('type' in value) || value['type'] === undefined)
29
- return false;
30
28
  if (!('sourceDatabase' in value) || value['sourceDatabase'] === undefined)
31
29
  return false;
32
30
  if (!('sourceUser' in value) || value['sourceUser'] === undefined)
@@ -44,25 +42,7 @@ function MovementClientBaseUsingFileMovementFromJSONTyped(json, ignoreDiscrimina
44
42
  if (json == null) {
45
43
  return json;
46
44
  }
47
- return {
48
- 'type': (0, MovementMovementType_1.MovementMovementTypeFromJSON)(json['type']),
49
- 'id': json['id'] == null ? undefined : json['id'],
50
- 'status': json['status'] == null ? undefined : json['status'],
51
- 'availableAction': json['availableAction'] == null ? undefined : json['availableAction'],
52
- 'scheduledDate': json['scheduledDate'] == null ? undefined : json['scheduledDate'],
53
- 'processedDate': json['processedDate'] == null ? undefined : json['processedDate'],
54
- 'addedDate': json['addedDate'] == null ? undefined : json['addedDate'],
55
- 'addedBy': json['addedBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['addedBy']),
56
- 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'],
57
- 'cancelledBy': json['cancelledBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['cancelledBy']),
58
- 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['sourceDatabase']),
59
- 'sourceUser': (0, MovementUser_1.MovementUserFromJSON)(json['sourceUser']),
60
- 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['destinationDatabase']),
61
- 'destinationUser': (0, MovementUser_1.MovementUserFromJSON)(json['destinationUser']),
62
- 'capsil': json['capsil'] == null ? undefined : json['capsil'],
63
- 'univeris': json['univeris'] == null ? undefined : json['univeris'],
64
- 'dataphile': json['dataphile'] == null ? undefined : json['dataphile'],
65
- };
45
+ return Object.assign(Object.assign({}, (0, MovementMovement_1.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 : (0, MovementUser_1.MovementUserFromJSON)(json['addedBy']), 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'], 'cancelledBy': json['cancelledBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['cancelledBy']), 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['sourceDatabase']), 'sourceUser': (0, MovementUser_1.MovementUserFromJSON)(json['sourceUser']), 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['destinationDatabase']), 'destinationUser': (0, MovementUser_1.MovementUserFromJSON)(json['destinationUser']), 'capsil': json['capsil'] == null ? undefined : json['capsil'], 'univeris': json['univeris'] == null ? undefined : json['univeris'], 'dataphile': json['dataphile'] == null ? undefined : json['dataphile'] });
66
46
  }
67
47
  function MovementClientBaseUsingFileMovementToJSON(json) {
68
48
  return MovementClientBaseUsingFileMovementToJSONTyped(json, false);
@@ -71,23 +51,5 @@ function MovementClientBaseUsingFileMovementToJSONTyped(value, ignoreDiscriminat
71
51
  if (value == null) {
72
52
  return value;
73
53
  }
74
- return {
75
- 'type': (0, MovementMovementType_1.MovementMovementTypeToJSON)(value['type']),
76
- 'id': value['id'],
77
- 'status': value['status'],
78
- 'availableAction': value['availableAction'],
79
- 'scheduledDate': value['scheduledDate'],
80
- 'processedDate': value['processedDate'],
81
- 'addedDate': value['addedDate'],
82
- 'addedBy': (0, MovementUser_1.MovementUserToJSON)(value['addedBy']),
83
- 'cancelledDate': value['cancelledDate'],
84
- 'cancelledBy': (0, MovementUser_1.MovementUserToJSON)(value['cancelledBy']),
85
- 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['sourceDatabase']),
86
- 'sourceUser': (0, MovementUser_1.MovementUserToJSON)(value['sourceUser']),
87
- 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['destinationDatabase']),
88
- 'destinationUser': (0, MovementUser_1.MovementUserToJSON)(value['destinationUser']),
89
- 'capsil': value['capsil'],
90
- 'univeris': value['univeris'],
91
- 'dataphile': value['dataphile'],
92
- };
54
+ return Object.assign(Object.assign({}, (0, MovementMovement_1.MovementMovementToJSONTyped)(value, true)), { 'id': value['id'], 'status': value['status'], 'availableAction': value['availableAction'], 'scheduledDate': value['scheduledDate'], 'processedDate': value['processedDate'], 'addedDate': value['addedDate'], 'addedBy': (0, MovementUser_1.MovementUserToJSON)(value['addedBy']), 'cancelledDate': value['cancelledDate'], 'cancelledBy': (0, MovementUser_1.MovementUserToJSON)(value['cancelledBy']), 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['sourceDatabase']), 'sourceUser': (0, MovementUser_1.MovementUserToJSON)(value['sourceUser']), 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['destinationDatabase']), 'destinationUser': (0, MovementUser_1.MovementUserToJSON)(value['destinationUser']), 'capsil': value['capsil'], 'univeris': value['univeris'], 'dataphile': value['dataphile'] });
93
55
  }
@@ -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 MovementClientBaseUsingFileMovementPayload
17
17
  */
18
- export interface MovementClientBaseUsingFileMovementPayload {
19
- /**
20
- *
21
- * @type {MovementMovementType}
22
- * @memberof MovementClientBaseUsingFileMovementPayload
23
- */
24
- type: MovementMovementType;
18
+ export interface MovementClientBaseUsingFileMovementPayload extends MovementMovementPayload {
25
19
  /**
26
20
  * Movement date.
27
21
  * @type {string}
@@ -18,13 +18,11 @@ exports.MovementClientBaseUsingFileMovementPayloadFromJSON = MovementClientBaseU
18
18
  exports.MovementClientBaseUsingFileMovementPayloadFromJSONTyped = MovementClientBaseUsingFileMovementPayloadFromJSONTyped;
19
19
  exports.MovementClientBaseUsingFileMovementPayloadToJSON = MovementClientBaseUsingFileMovementPayloadToJSON;
20
20
  exports.MovementClientBaseUsingFileMovementPayloadToJSONTyped = MovementClientBaseUsingFileMovementPayloadToJSONTyped;
21
- const MovementMovementType_1 = require("./MovementMovementType");
21
+ const MovementMovementPayload_1 = require("./MovementMovementPayload");
22
22
  /**
23
23
  * Check if a given object implements the MovementClientBaseUsingFileMovementPayload interface.
24
24
  */
25
25
  function instanceOfMovementClientBaseUsingFileMovementPayload(value) {
26
- if (!('type' in value) || value['type'] === undefined)
27
- return false;
28
26
  if (!('sourceDatabase' in value) || value['sourceDatabase'] === undefined)
29
27
  return false;
30
28
  if (!('sourceUser' in value) || value['sourceUser'] === undefined)
@@ -42,17 +40,7 @@ function MovementClientBaseUsingFileMovementPayloadFromJSONTyped(json, ignoreDis
42
40
  if (json == null) {
43
41
  return json;
44
42
  }
45
- return {
46
- 'type': (0, MovementMovementType_1.MovementMovementTypeFromJSON)(json['type']),
47
- 'date': json['date'] == null ? undefined : json['date'],
48
- 'sourceDatabase': json['sourceDatabase'],
49
- 'sourceUser': json['sourceUser'],
50
- 'destinationDatabase': json['destinationDatabase'],
51
- 'destinationUser': json['destinationUser'],
52
- 'capsilFile': json['capsilFile'] == null ? undefined : json['capsilFile'],
53
- 'univerisFile': json['univerisFile'] == null ? undefined : json['univerisFile'],
54
- 'dataphileFile': json['dataphileFile'] == null ? undefined : json['dataphileFile'],
55
- };
43
+ return Object.assign(Object.assign({}, (0, MovementMovementPayload_1.MovementMovementPayloadFromJSONTyped)(json, true)), { 'date': json['date'] == null ? undefined : json['date'], 'sourceDatabase': json['sourceDatabase'], 'sourceUser': json['sourceUser'], 'destinationDatabase': json['destinationDatabase'], 'destinationUser': json['destinationUser'], 'capsilFile': json['capsilFile'] == null ? undefined : json['capsilFile'], 'univerisFile': json['univerisFile'] == null ? undefined : json['univerisFile'], 'dataphileFile': json['dataphileFile'] == null ? undefined : json['dataphileFile'] });
56
44
  }
57
45
  function MovementClientBaseUsingFileMovementPayloadToJSON(json) {
58
46
  return MovementClientBaseUsingFileMovementPayloadToJSONTyped(json, false);
@@ -61,15 +49,5 @@ function MovementClientBaseUsingFileMovementPayloadToJSONTyped(value, ignoreDisc
61
49
  if (value == null) {
62
50
  return value;
63
51
  }
64
- return {
65
- 'type': (0, MovementMovementType_1.MovementMovementTypeToJSON)(value['type']),
66
- 'date': value['date'],
67
- 'sourceDatabase': value['sourceDatabase'],
68
- 'sourceUser': value['sourceUser'],
69
- 'destinationDatabase': value['destinationDatabase'],
70
- 'destinationUser': value['destinationUser'],
71
- 'capsilFile': value['capsilFile'],
72
- 'univerisFile': value['univerisFile'],
73
- 'dataphileFile': value['dataphileFile'],
74
- };
52
+ return Object.assign(Object.assign({}, (0, MovementMovementPayload_1.MovementMovementPayloadToJSONTyped)(value, true)), { 'date': value['date'], 'sourceDatabase': value['sourceDatabase'], 'sourceUser': value['sourceUser'], 'destinationDatabase': value['destinationDatabase'], 'destinationUser': value['destinationUser'], 'capsilFile': value['capsilFile'], 'univerisFile': value['univerisFile'], 'dataphileFile': value['dataphileFile'] });
75
53
  }
@@ -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 { MovementUserTuple } from './MovementUserTuple';
13
- import type { MovementMovementType } from './MovementMovementType';
14
14
  import type { MovementDatabase } from './MovementDatabase';
15
15
  import type { MovementUser } from './MovementUser';
16
16
  /**
@@ -18,13 +18,7 @@ import type { MovementUser } from './MovementUser';
18
18
  * @export
19
19
  * @interface MovementCopyMovement
20
20
  */
21
- export interface MovementCopyMovement {
22
- /**
23
- *
24
- * @type {MovementMovementType}
25
- * @memberof MovementCopyMovement
26
- */
27
- type: MovementMovementType;
21
+ export interface MovementCopyMovement extends MovementMovement {
28
22
  /**
29
23
  * Unique numerical identifier.
30
24
  * @type {number}
@@ -18,16 +18,14 @@ exports.MovementCopyMovementFromJSON = MovementCopyMovementFromJSON;
18
18
  exports.MovementCopyMovementFromJSONTyped = MovementCopyMovementFromJSONTyped;
19
19
  exports.MovementCopyMovementToJSON = MovementCopyMovementToJSON;
20
20
  exports.MovementCopyMovementToJSONTyped = MovementCopyMovementToJSONTyped;
21
+ const MovementMovement_1 = require("./MovementMovement");
21
22
  const MovementUserTuple_1 = require("./MovementUserTuple");
22
- const MovementMovementType_1 = require("./MovementMovementType");
23
23
  const MovementDatabase_1 = require("./MovementDatabase");
24
24
  const MovementUser_1 = require("./MovementUser");
25
25
  /**
26
26
  * Check if a given object implements the MovementCopyMovement interface.
27
27
  */
28
28
  function instanceOfMovementCopyMovement(value) {
29
- if (!('type' in value) || value['type'] === undefined)
30
- return false;
31
29
  if (!('sourceDatabase' in value) || value['sourceDatabase'] === undefined)
32
30
  return false;
33
31
  if (!('destinationDatabase' in value) || value['destinationDatabase'] === undefined)
@@ -43,21 +41,7 @@ function MovementCopyMovementFromJSONTyped(json, ignoreDiscriminator) {
43
41
  if (json == null) {
44
42
  return json;
45
43
  }
46
- return {
47
- 'type': (0, MovementMovementType_1.MovementMovementTypeFromJSON)(json['type']),
48
- 'id': json['id'] == null ? undefined : json['id'],
49
- 'status': json['status'] == null ? undefined : json['status'],
50
- 'availableAction': json['availableAction'] == null ? undefined : json['availableAction'],
51
- 'scheduledDate': json['scheduledDate'] == null ? undefined : json['scheduledDate'],
52
- 'processedDate': json['processedDate'] == null ? undefined : json['processedDate'],
53
- 'addedDate': json['addedDate'] == null ? undefined : json['addedDate'],
54
- 'addedBy': json['addedBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['addedBy']),
55
- 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'],
56
- 'cancelledBy': json['cancelledBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['cancelledBy']),
57
- 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['sourceDatabase']),
58
- 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['destinationDatabase']),
59
- 'userTuples': (json['userTuples'].map(MovementUserTuple_1.MovementUserTupleFromJSON)),
60
- };
44
+ return Object.assign(Object.assign({}, (0, MovementMovement_1.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 : (0, MovementUser_1.MovementUserFromJSON)(json['addedBy']), 'cancelledDate': json['cancelledDate'] == null ? undefined : json['cancelledDate'], 'cancelledBy': json['cancelledBy'] == null ? undefined : (0, MovementUser_1.MovementUserFromJSON)(json['cancelledBy']), 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['sourceDatabase']), 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseFromJSON)(json['destinationDatabase']), 'userTuples': (json['userTuples'].map(MovementUserTuple_1.MovementUserTupleFromJSON)) });
61
45
  }
62
46
  function MovementCopyMovementToJSON(json) {
63
47
  return MovementCopyMovementToJSONTyped(json, false);
@@ -66,19 +50,5 @@ function MovementCopyMovementToJSONTyped(value, ignoreDiscriminator = false) {
66
50
  if (value == null) {
67
51
  return value;
68
52
  }
69
- return {
70
- 'type': (0, MovementMovementType_1.MovementMovementTypeToJSON)(value['type']),
71
- 'id': value['id'],
72
- 'status': value['status'],
73
- 'availableAction': value['availableAction'],
74
- 'scheduledDate': value['scheduledDate'],
75
- 'processedDate': value['processedDate'],
76
- 'addedDate': value['addedDate'],
77
- 'addedBy': (0, MovementUser_1.MovementUserToJSON)(value['addedBy']),
78
- 'cancelledDate': value['cancelledDate'],
79
- 'cancelledBy': (0, MovementUser_1.MovementUserToJSON)(value['cancelledBy']),
80
- 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['sourceDatabase']),
81
- 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['destinationDatabase']),
82
- 'userTuples': (value['userTuples'].map(MovementUserTuple_1.MovementUserTupleToJSON)),
83
- };
53
+ return Object.assign(Object.assign({}, (0, MovementMovement_1.MovementMovementToJSONTyped)(value, true)), { 'id': value['id'], 'status': value['status'], 'availableAction': value['availableAction'], 'scheduledDate': value['scheduledDate'], 'processedDate': value['processedDate'], 'addedDate': value['addedDate'], 'addedBy': (0, MovementUser_1.MovementUserToJSON)(value['addedBy']), 'cancelledDate': value['cancelledDate'], 'cancelledBy': (0, MovementUser_1.MovementUserToJSON)(value['cancelledBy']), 'sourceDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['sourceDatabase']), 'destinationDatabase': (0, MovementDatabase_1.MovementDatabaseToJSON)(value['destinationDatabase']), 'userTuples': (value['userTuples'].map(MovementUserTuple_1.MovementUserTupleToJSON)) });
84
54
  }
@@ -11,19 +11,13 @@
11
11
  */
12
12
  import type { MovementOptions } from './MovementOptions';
13
13
  import type { MovementUserTuplePayload } from './MovementUserTuplePayload';
14
- import type { MovementMovementType } from './MovementMovementType';
14
+ import type { MovementMovementPayload } from './MovementMovementPayload';
15
15
  /**
16
16
  *
17
17
  * @export
18
18
  * @interface MovementCopyMovementPayload
19
19
  */
20
- export interface MovementCopyMovementPayload {
21
- /**
22
- *
23
- * @type {MovementMovementType}
24
- * @memberof MovementCopyMovementPayload
25
- */
26
- type: MovementMovementType;
20
+ export interface MovementCopyMovementPayload extends MovementMovementPayload {
27
21
  /**
28
22
  * Movement date.
29
23
  * @type {string}