@equisoft/equisoft-connect-sdk-typescript 10.7.1 → 10.8.3-snapshot.20211021175812

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 (83) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/dist/apis/ContactsApi.d.ts +30 -0
  4. package/dist/apis/ContactsApi.js +68 -0
  5. package/dist/apis/DSFApi.d.ts +10 -10
  6. package/dist/apis/DSFApi.js +20 -20
  7. package/dist/apis/DatabasesApi.d.ts +6 -6
  8. package/dist/apis/DatabasesApi.js +12 -12
  9. package/dist/apis/EventsApi.d.ts +28 -28
  10. package/dist/apis/EventsApi.js +56 -56
  11. package/dist/apis/GatewaysApi.d.ts +20 -20
  12. package/dist/apis/GatewaysApi.js +40 -40
  13. package/dist/apis/IntegrationsApi.d.ts +4 -4
  14. package/dist/apis/IntegrationsApi.js +8 -8
  15. package/dist/apis/LegacyDocumentApi.d.ts +16 -16
  16. package/dist/apis/LegacyDocumentApi.js +32 -32
  17. package/dist/apis/LegacyProvisioningApi.d.ts +4 -4
  18. package/dist/apis/LegacyProvisioningApi.js +8 -8
  19. package/dist/apis/MovementApi.d.ts +10 -10
  20. package/dist/apis/MovementApi.js +20 -20
  21. package/dist/apis/MxApi.d.ts +2 -2
  22. package/dist/apis/MxApi.js +4 -4
  23. package/dist/apis/RemoteAccountApi.d.ts +4 -4
  24. package/dist/apis/RemoteAccountApi.js +8 -8
  25. package/dist/apis/TasksApi.d.ts +22 -22
  26. package/dist/apis/TasksApi.js +44 -44
  27. package/dist/apis/UsersApi.d.ts +4 -4
  28. package/dist/apis/UsersApi.js +8 -8
  29. package/dist/apis/index.d.ts +1 -0
  30. package/dist/apis/index.js +3 -0
  31. package/dist/index.js +2 -0
  32. package/dist/models/ContactContactAdditionalInformation.d.ts +82 -0
  33. package/dist/models/ContactContactAdditionalInformation.js +61 -0
  34. package/dist/models/ContactContactAddress.d.ts +94 -0
  35. package/dist/models/ContactContactAddress.js +65 -0
  36. package/dist/models/ContactContactEmail.d.ts +58 -0
  37. package/dist/models/ContactContactEmail.js +53 -0
  38. package/dist/models/ContactContactIdentification.d.ts +75 -0
  39. package/dist/models/ContactContactIdentification.js +58 -0
  40. package/dist/models/ContactContactMaritalStatus.d.ts +52 -0
  41. package/dist/models/ContactContactMaritalStatus.js +51 -0
  42. package/dist/models/ContactContactOccupation.d.ts +57 -0
  43. package/dist/models/ContactContactOccupation.js +52 -0
  44. package/dist/models/ContactContactPhone.d.ts +70 -0
  45. package/dist/models/ContactContactPhone.js +57 -0
  46. package/dist/models/ContactContactSegmentation.d.ts +94 -0
  47. package/dist/models/ContactContactSegmentation.js +65 -0
  48. package/dist/models/ContactContactWebsite.d.ts +45 -0
  49. package/dist/models/ContactContactWebsite.js +48 -0
  50. package/dist/models/ContactsContact.d.ts +130 -0
  51. package/dist/models/ContactsContact.js +77 -0
  52. package/dist/models/index.d.ts +10 -0
  53. package/dist/models/index.js +12 -0
  54. package/dist/runtime.d.ts +1 -1
  55. package/dist/runtime.js +6 -11
  56. package/package.json +1 -1
  57. package/src/apis/ContactsApi.ts +75 -0
  58. package/src/apis/DSFApi.ts +20 -20
  59. package/src/apis/DatabasesApi.ts +12 -12
  60. package/src/apis/EventsApi.ts +56 -56
  61. package/src/apis/GatewaysApi.ts +40 -40
  62. package/src/apis/IntegrationsApi.ts +8 -8
  63. package/src/apis/LegacyDocumentApi.ts +32 -32
  64. package/src/apis/LegacyProvisioningApi.ts +8 -8
  65. package/src/apis/MovementApi.ts +20 -20
  66. package/src/apis/MxApi.ts +4 -4
  67. package/src/apis/RemoteAccountApi.ts +8 -8
  68. package/src/apis/TasksApi.ts +44 -44
  69. package/src/apis/UsersApi.ts +8 -8
  70. package/src/apis/index.ts +3 -0
  71. package/src/index.ts +2 -0
  72. package/src/models/ContactContactAdditionalInformation.ts +136 -0
  73. package/src/models/ContactContactAddress.ts +152 -0
  74. package/src/models/ContactContactEmail.ts +104 -0
  75. package/src/models/ContactContactIdentification.ts +121 -0
  76. package/src/models/ContactContactMaritalStatus.ts +96 -0
  77. package/src/models/ContactContactOccupation.ts +97 -0
  78. package/src/models/ContactContactPhone.ts +120 -0
  79. package/src/models/ContactContactSegmentation.ts +152 -0
  80. package/src/models/ContactContactWebsite.ts +81 -0
  81. package/src/models/ContactsContact.ts +232 -0
  82. package/src/models/index.ts +12 -0
  83. package/src/runtime.ts +7 -6
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Equisoft /connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { FieldValue } from './';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ContactContactSegmentation
17
+ */
18
+ export interface ContactContactSegmentation {
19
+ /**
20
+ * Contact's categories which represents the contact's different classes
21
+ * @type {Array<FieldValue>}
22
+ * @memberof ContactContactSegmentation
23
+ */
24
+ categories: Array<FieldValue>;
25
+ /**
26
+ * Contact's distribution lists
27
+ * @type {Array<FieldValue>}
28
+ * @memberof ContactContactSegmentation
29
+ */
30
+ distributionLists: Array<FieldValue>;
31
+ /**
32
+ * Contact's hobbies
33
+ * @type {Array<FieldValue>}
34
+ * @memberof ContactContactSegmentation
35
+ */
36
+ hobbies: Array<FieldValue>;
37
+ /**
38
+ * Contact's references
39
+ * @type {Array<FieldValue>}
40
+ * @memberof ContactContactSegmentation
41
+ */
42
+ referredBy: Array<FieldValue>;
43
+ /**
44
+ * Contact's industries
45
+ * @type {Array<FieldValue>}
46
+ * @memberof ContactContactSegmentation
47
+ */
48
+ industries: Array<FieldValue>;
49
+ /**
50
+ *
51
+ * @type {FieldValue}
52
+ * @memberof ContactContactSegmentation
53
+ */
54
+ segmentation1?: FieldValue | null;
55
+ /**
56
+ *
57
+ * @type {FieldValue}
58
+ * @memberof ContactContactSegmentation
59
+ */
60
+ segmentation2?: FieldValue | null;
61
+ /**
62
+ *
63
+ * @type {FieldValue}
64
+ * @memberof ContactContactSegmentation
65
+ */
66
+ segmentation3?: FieldValue | null;
67
+ /**
68
+ *
69
+ * @type {FieldValue}
70
+ * @memberof ContactContactSegmentation
71
+ */
72
+ segmentation4?: FieldValue | null;
73
+ /**
74
+ *
75
+ * @type {FieldValue}
76
+ * @memberof ContactContactSegmentation
77
+ */
78
+ segmentation5?: FieldValue | null;
79
+ /**
80
+ *
81
+ * @type {FieldValue}
82
+ * @memberof ContactContactSegmentation
83
+ */
84
+ segmentation6?: FieldValue | null;
85
+ /**
86
+ *
87
+ * @type {FieldValue}
88
+ * @memberof ContactContactSegmentation
89
+ */
90
+ territory?: FieldValue | null;
91
+ }
92
+ export declare function ContactContactSegmentationFromJSON(json: any): ContactContactSegmentation;
93
+ export declare function ContactContactSegmentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactContactSegmentation;
94
+ export declare function ContactContactSegmentationToJSON(value?: ContactContactSegmentation | null): any;
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Equisoft /connect API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ContactContactSegmentationToJSON = exports.ContactContactSegmentationFromJSONTyped = exports.ContactContactSegmentationFromJSON = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const _1 = require("./");
19
+ function ContactContactSegmentationFromJSON(json) {
20
+ return ContactContactSegmentationFromJSONTyped(json, false);
21
+ }
22
+ exports.ContactContactSegmentationFromJSON = ContactContactSegmentationFromJSON;
23
+ function ContactContactSegmentationFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'categories': (json['categories'].map(_1.FieldValueFromJSON)),
29
+ 'distributionLists': (json['distributionLists'].map(_1.FieldValueFromJSON)),
30
+ 'hobbies': (json['hobbies'].map(_1.FieldValueFromJSON)),
31
+ 'referredBy': (json['referredBy'].map(_1.FieldValueFromJSON)),
32
+ 'industries': (json['industries'].map(_1.FieldValueFromJSON)),
33
+ 'segmentation1': !runtime_1.exists(json, 'segmentation1') ? undefined : _1.FieldValueFromJSON(json['segmentation1']),
34
+ 'segmentation2': !runtime_1.exists(json, 'segmentation2') ? undefined : _1.FieldValueFromJSON(json['segmentation2']),
35
+ 'segmentation3': !runtime_1.exists(json, 'segmentation3') ? undefined : _1.FieldValueFromJSON(json['segmentation3']),
36
+ 'segmentation4': !runtime_1.exists(json, 'segmentation4') ? undefined : _1.FieldValueFromJSON(json['segmentation4']),
37
+ 'segmentation5': !runtime_1.exists(json, 'segmentation5') ? undefined : _1.FieldValueFromJSON(json['segmentation5']),
38
+ 'segmentation6': !runtime_1.exists(json, 'segmentation6') ? undefined : _1.FieldValueFromJSON(json['segmentation6']),
39
+ 'territory': !runtime_1.exists(json, 'territory') ? undefined : _1.FieldValueFromJSON(json['territory']),
40
+ };
41
+ }
42
+ exports.ContactContactSegmentationFromJSONTyped = ContactContactSegmentationFromJSONTyped;
43
+ function ContactContactSegmentationToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'categories': (value.categories.map(_1.FieldValueToJSON)),
52
+ 'distributionLists': (value.distributionLists.map(_1.FieldValueToJSON)),
53
+ 'hobbies': (value.hobbies.map(_1.FieldValueToJSON)),
54
+ 'referredBy': (value.referredBy.map(_1.FieldValueToJSON)),
55
+ 'industries': (value.industries.map(_1.FieldValueToJSON)),
56
+ 'segmentation1': _1.FieldValueToJSON(value.segmentation1),
57
+ 'segmentation2': _1.FieldValueToJSON(value.segmentation2),
58
+ 'segmentation3': _1.FieldValueToJSON(value.segmentation3),
59
+ 'segmentation4': _1.FieldValueToJSON(value.segmentation4),
60
+ 'segmentation5': _1.FieldValueToJSON(value.segmentation5),
61
+ 'segmentation6': _1.FieldValueToJSON(value.segmentation6),
62
+ 'territory': _1.FieldValueToJSON(value.territory),
63
+ };
64
+ }
65
+ exports.ContactContactSegmentationToJSON = ContactContactSegmentationToJSON;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Equisoft /connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ContactContactWebsite
16
+ */
17
+ export interface ContactContactWebsite {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ContactContactWebsite
22
+ */
23
+ id?: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ContactContactWebsite
28
+ */
29
+ url?: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ContactContactWebsite
34
+ */
35
+ isMain?: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof ContactContactWebsite
40
+ */
41
+ locked?: boolean;
42
+ }
43
+ export declare function ContactContactWebsiteFromJSON(json: any): ContactContactWebsite;
44
+ export declare function ContactContactWebsiteFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactContactWebsite;
45
+ export declare function ContactContactWebsiteToJSON(value?: ContactContactWebsite | null): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Equisoft /connect API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ContactContactWebsiteToJSON = exports.ContactContactWebsiteFromJSONTyped = exports.ContactContactWebsiteFromJSON = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ function ContactContactWebsiteFromJSON(json) {
19
+ return ContactContactWebsiteFromJSONTyped(json, false);
20
+ }
21
+ exports.ContactContactWebsiteFromJSON = ContactContactWebsiteFromJSON;
22
+ function ContactContactWebsiteFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'id': !runtime_1.exists(json, 'id') ? undefined : json['id'],
28
+ 'url': !runtime_1.exists(json, 'url') ? undefined : json['url'],
29
+ 'isMain': !runtime_1.exists(json, 'isMain') ? undefined : json['isMain'],
30
+ 'locked': !runtime_1.exists(json, 'locked') ? undefined : json['locked'],
31
+ };
32
+ }
33
+ exports.ContactContactWebsiteFromJSONTyped = ContactContactWebsiteFromJSONTyped;
34
+ function ContactContactWebsiteToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'id': value.id,
43
+ 'url': value.url,
44
+ 'isMain': value.isMain,
45
+ 'locked': value.locked,
46
+ };
47
+ }
48
+ exports.ContactContactWebsiteToJSON = ContactContactWebsiteToJSON;
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Equisoft /connect API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ContactContactAdditionalInformation, ContactContactAddress, ContactContactEmail, ContactContactIdentification, ContactContactMaritalStatus, ContactContactOccupation, ContactContactPhone, ContactContactSegmentation, ContactContactWebsite } from './';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ContactsContact
17
+ */
18
+ export interface ContactsContact {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof ContactsContact
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ContactsContact
29
+ */
30
+ uuid: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ContactsContact
35
+ */
36
+ contactType: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ContactsContact
41
+ */
42
+ displayName?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ContactsContact
47
+ */
48
+ sortName?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ContactsContact
53
+ */
54
+ notes?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ContactsContact
59
+ */
60
+ notesAdditionalInformation?: string;
61
+ /**
62
+ *
63
+ * @type {Date}
64
+ * @memberof ContactsContact
65
+ */
66
+ creationDate?: Date | null;
67
+ /**
68
+ *
69
+ * @type {Date}
70
+ * @memberof ContactsContact
71
+ */
72
+ lastUpdateDate?: Date | null;
73
+ /**
74
+ *
75
+ * @type {ContactContactIdentification}
76
+ * @memberof ContactsContact
77
+ */
78
+ identification?: ContactContactIdentification;
79
+ /**
80
+ *
81
+ * @type {ContactContactAdditionalInformation}
82
+ * @memberof ContactsContact
83
+ */
84
+ additionalInformation?: ContactContactAdditionalInformation;
85
+ /**
86
+ *
87
+ * @type {ContactContactMaritalStatus}
88
+ * @memberof ContactsContact
89
+ */
90
+ currentMaritalStatus?: ContactContactMaritalStatus | null;
91
+ /**
92
+ *
93
+ * @type {ContactContactOccupation}
94
+ * @memberof ContactsContact
95
+ */
96
+ currentOccupation?: ContactContactOccupation | null;
97
+ /**
98
+ *
99
+ * @type {ContactContactSegmentation}
100
+ * @memberof ContactsContact
101
+ */
102
+ segmentation?: ContactContactSegmentation;
103
+ /**
104
+ * List of contact's addresses
105
+ * @type {Array<ContactContactAddress>}
106
+ * @memberof ContactsContact
107
+ */
108
+ addresses?: Array<ContactContactAddress>;
109
+ /**
110
+ * List of contact's phones
111
+ * @type {Array<ContactContactPhone>}
112
+ * @memberof ContactsContact
113
+ */
114
+ phones?: Array<ContactContactPhone>;
115
+ /**
116
+ * List of contact's emails
117
+ * @type {Array<ContactContactEmail>}
118
+ * @memberof ContactsContact
119
+ */
120
+ emails?: Array<ContactContactEmail>;
121
+ /**
122
+ * List of contact's websites
123
+ * @type {Array<ContactContactWebsite>}
124
+ * @memberof ContactsContact
125
+ */
126
+ websites?: Array<ContactContactWebsite>;
127
+ }
128
+ export declare function ContactsContactFromJSON(json: any): ContactsContact;
129
+ export declare function ContactsContactFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactsContact;
130
+ export declare function ContactsContactToJSON(value?: ContactsContact | null): any;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Equisoft /connect API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ContactsContactToJSON = exports.ContactsContactFromJSONTyped = exports.ContactsContactFromJSON = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const _1 = require("./");
19
+ function ContactsContactFromJSON(json) {
20
+ return ContactsContactFromJSONTyped(json, false);
21
+ }
22
+ exports.ContactsContactFromJSON = ContactsContactFromJSON;
23
+ function ContactsContactFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'id': json['id'],
29
+ 'uuid': json['uuid'],
30
+ 'contactType': json['contactType'],
31
+ 'displayName': !runtime_1.exists(json, 'displayName') ? undefined : json['displayName'],
32
+ 'sortName': !runtime_1.exists(json, 'sortName') ? undefined : json['sortName'],
33
+ 'notes': !runtime_1.exists(json, 'notes') ? undefined : json['notes'],
34
+ 'notesAdditionalInformation': !runtime_1.exists(json, 'notesAdditionalInformation') ? undefined : json['notesAdditionalInformation'],
35
+ 'creationDate': !runtime_1.exists(json, 'creationDate') ? undefined : (json['creationDate'] === null ? null : new Date(json['creationDate'])),
36
+ 'lastUpdateDate': !runtime_1.exists(json, 'lastUpdateDate') ? undefined : (json['lastUpdateDate'] === null ? null : new Date(json['lastUpdateDate'])),
37
+ 'identification': !runtime_1.exists(json, 'identification') ? undefined : _1.ContactContactIdentificationFromJSON(json['identification']),
38
+ 'additionalInformation': !runtime_1.exists(json, 'additionalInformation') ? undefined : _1.ContactContactAdditionalInformationFromJSON(json['additionalInformation']),
39
+ 'currentMaritalStatus': !runtime_1.exists(json, 'currentMaritalStatus') ? undefined : _1.ContactContactMaritalStatusFromJSON(json['currentMaritalStatus']),
40
+ 'currentOccupation': !runtime_1.exists(json, 'currentOccupation') ? undefined : _1.ContactContactOccupationFromJSON(json['currentOccupation']),
41
+ 'segmentation': !runtime_1.exists(json, 'segmentation') ? undefined : _1.ContactContactSegmentationFromJSON(json['segmentation']),
42
+ 'addresses': !runtime_1.exists(json, 'addresses') ? undefined : (json['addresses'].map(_1.ContactContactAddressFromJSON)),
43
+ 'phones': !runtime_1.exists(json, 'phones') ? undefined : (json['phones'].map(_1.ContactContactPhoneFromJSON)),
44
+ 'emails': !runtime_1.exists(json, 'emails') ? undefined : (json['emails'].map(_1.ContactContactEmailFromJSON)),
45
+ 'websites': !runtime_1.exists(json, 'websites') ? undefined : (json['websites'].map(_1.ContactContactWebsiteFromJSON)),
46
+ };
47
+ }
48
+ exports.ContactsContactFromJSONTyped = ContactsContactFromJSONTyped;
49
+ function ContactsContactToJSON(value) {
50
+ if (value === undefined) {
51
+ return undefined;
52
+ }
53
+ if (value === null) {
54
+ return null;
55
+ }
56
+ return {
57
+ 'id': value.id,
58
+ 'uuid': value.uuid,
59
+ 'contactType': value.contactType,
60
+ 'displayName': value.displayName,
61
+ 'sortName': value.sortName,
62
+ 'notes': value.notes,
63
+ 'notesAdditionalInformation': value.notesAdditionalInformation,
64
+ 'creationDate': value.creationDate === undefined ? undefined : (value.creationDate === null ? null : value.creationDate.toISOString()),
65
+ 'lastUpdateDate': value.lastUpdateDate === undefined ? undefined : (value.lastUpdateDate === null ? null : value.lastUpdateDate.toISOString()),
66
+ 'identification': _1.ContactContactIdentificationToJSON(value.identification),
67
+ 'additionalInformation': _1.ContactContactAdditionalInformationToJSON(value.additionalInformation),
68
+ 'currentMaritalStatus': _1.ContactContactMaritalStatusToJSON(value.currentMaritalStatus),
69
+ 'currentOccupation': _1.ContactContactOccupationToJSON(value.currentOccupation),
70
+ 'segmentation': _1.ContactContactSegmentationToJSON(value.segmentation),
71
+ 'addresses': value.addresses === undefined ? undefined : (value.addresses.map(_1.ContactContactAddressToJSON)),
72
+ 'phones': value.phones === undefined ? undefined : (value.phones.map(_1.ContactContactPhoneToJSON)),
73
+ 'emails': value.emails === undefined ? undefined : (value.emails.map(_1.ContactContactEmailToJSON)),
74
+ 'websites': value.websites === undefined ? undefined : (value.websites.map(_1.ContactContactWebsiteToJSON)),
75
+ };
76
+ }
77
+ exports.ContactsContactToJSON = ContactsContactToJSON;
@@ -4,6 +4,16 @@ export * from './AdminCredentialResponse';
4
4
  export * from './CalendarDefaultCalendarId';
5
5
  export * from './CalendarsCalendar';
6
6
  export * from './CalendarsListCalendarResponse';
7
+ export * from './ContactContactAdditionalInformation';
8
+ export * from './ContactContactAddress';
9
+ export * from './ContactContactEmail';
10
+ export * from './ContactContactIdentification';
11
+ export * from './ContactContactMaritalStatus';
12
+ export * from './ContactContactOccupation';
13
+ export * from './ContactContactPhone';
14
+ export * from './ContactContactSegmentation';
15
+ export * from './ContactContactWebsite';
16
+ export * from './ContactsContact';
7
17
  export * from './ContextActor';
8
18
  export * from './ContextEquisoftConnect';
9
19
  export * from './ContextEquisoftConnectUser';
@@ -10,12 +10,24 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ /* tslint:disable */
14
+ /* eslint-disable */
13
15
  __exportStar(require("./AccessRights"), exports);
14
16
  __exportStar(require("./AdminCredentialPayload"), exports);
15
17
  __exportStar(require("./AdminCredentialResponse"), exports);
16
18
  __exportStar(require("./CalendarDefaultCalendarId"), exports);
17
19
  __exportStar(require("./CalendarsCalendar"), exports);
18
20
  __exportStar(require("./CalendarsListCalendarResponse"), exports);
21
+ __exportStar(require("./ContactContactAdditionalInformation"), exports);
22
+ __exportStar(require("./ContactContactAddress"), exports);
23
+ __exportStar(require("./ContactContactEmail"), exports);
24
+ __exportStar(require("./ContactContactIdentification"), exports);
25
+ __exportStar(require("./ContactContactMaritalStatus"), exports);
26
+ __exportStar(require("./ContactContactOccupation"), exports);
27
+ __exportStar(require("./ContactContactPhone"), exports);
28
+ __exportStar(require("./ContactContactSegmentation"), exports);
29
+ __exportStar(require("./ContactContactWebsite"), exports);
30
+ __exportStar(require("./ContactsContact"), exports);
19
31
  __exportStar(require("./ContextActor"), exports);
20
32
  __exportStar(require("./ContextEquisoftConnect"), exports);
21
33
  __exportStar(require("./ContextEquisoftConnectUser"), exports);
package/dist/runtime.d.ts CHANGED
@@ -20,7 +20,7 @@ export declare class BaseAPI {
20
20
  withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
21
21
  withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
22
22
  withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
23
- protected request(context: RequestOpts): Promise<Response>;
23
+ protected request(context: RequestOpts, initOverrides?: RequestInit): Promise<Response>;
24
24
  private createFetchParams;
25
25
  private fetchApi;
26
26
  /**
package/dist/runtime.js CHANGED
@@ -38,7 +38,7 @@ class BaseAPI {
38
38
  fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
39
39
  }
40
40
  }
41
- let response = yield this.configuration.fetchApi(fetchParams.url, fetchParams.init);
41
+ let response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
42
42
  for (const middleware of this.middleware) {
43
43
  if (middleware.post) {
44
44
  response = (yield middleware.post({
@@ -66,9 +66,9 @@ class BaseAPI {
66
66
  const middlewares = postMiddlewares.map((post) => ({ post }));
67
67
  return this.withMiddleware(...middlewares);
68
68
  }
69
- request(context) {
69
+ request(context, initOverrides) {
70
70
  return __awaiter(this, void 0, void 0, function* () {
71
- const { url, init } = this.createFetchParams(context);
71
+ const { url, init } = this.createFetchParams(context, initOverrides);
72
72
  const response = yield this.fetchApi(url, init);
73
73
  if (response.status >= 200 && response.status < 300) {
74
74
  return response;
@@ -76,7 +76,7 @@ class BaseAPI {
76
76
  throw response;
77
77
  });
78
78
  }
79
- createFetchParams(context) {
79
+ createFetchParams(context, initOverrides) {
80
80
  let url = this.configuration.basePath + context.path;
81
81
  if (context.query !== undefined && Object.keys(context.query).length !== 0) {
82
82
  // only add the querystring to the URL if there are query parameters.
@@ -88,12 +88,7 @@ class BaseAPI {
88
88
  ? context.body
89
89
  : JSON.stringify(context.body);
90
90
  const headers = Object.assign({}, this.configuration.headers, context.headers);
91
- const init = {
92
- method: context.method,
93
- headers: headers,
94
- body,
95
- credentials: this.configuration.credentials
96
- };
91
+ const init = Object.assign({ method: context.method, headers: headers, body, credentials: this.configuration.credentials }, initOverrides);
97
92
  return { url, init };
98
93
  }
99
94
  /**
@@ -131,7 +126,7 @@ class Configuration {
131
126
  return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH;
132
127
  }
133
128
  get fetchApi() {
134
- return this.configuration.fetchApi || window.fetch.bind(window);
129
+ return this.configuration.fetchApi;
135
130
  }
136
131
  get middleware() {
137
132
  return this.configuration.middleware || [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/equisoft-connect-sdk-typescript",
3
- "version": "10.7.1",
3
+ "version": "10.8.3-snapshot.20211021175812",
4
4
  "description": "OpenAPI client for @equisoft/equisoft-connect-sdk-typescript",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Equisoft /connect API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import {
18
+ ContactsContact,
19
+ ContactsContactFromJSON,
20
+ ContactsContactToJSON,
21
+ ErrorResponse,
22
+ ErrorResponseFromJSON,
23
+ ErrorResponseToJSON,
24
+ } from '../models';
25
+
26
+ export interface GetByUuidRequest {
27
+ contactUuid: string;
28
+ acceptLanguage?: string;
29
+ }
30
+
31
+ /**
32
+ *
33
+ */
34
+ export class ContactsApi extends runtime.BaseAPI {
35
+
36
+ /**
37
+ * Return the detail of a contact.
38
+ */
39
+ async getByUuidRaw(requestParameters: GetByUuidRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ContactsContact>> {
40
+ if (requestParameters.contactUuid === null || requestParameters.contactUuid === undefined) {
41
+ throw new runtime.RequiredError('contactUuid','Required parameter requestParameters.contactUuid was null or undefined when calling getByUuid.');
42
+ }
43
+
44
+ const queryParameters: any = {};
45
+
46
+ const headerParameters: runtime.HTTPHeaders = {};
47
+
48
+ if (requestParameters.acceptLanguage !== undefined && requestParameters.acceptLanguage !== null) {
49
+ headerParameters['Accept-Language'] = String(requestParameters.acceptLanguage);
50
+ }
51
+
52
+ if (this.configuration && this.configuration.accessToken) {
53
+ // oauth required
54
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", ["crm:contact"]);
55
+ }
56
+
57
+ const response = await this.request({
58
+ path: `/crm/api/v1/contacts/{contactUuid}`.replace(`{${"contactUuid"}}`, encodeURIComponent(String(requestParameters.contactUuid))),
59
+ method: 'GET',
60
+ headers: headerParameters,
61
+ query: queryParameters,
62
+ }, initOverrides);
63
+
64
+ return new runtime.JSONApiResponse(response, (jsonValue) => ContactsContactFromJSON(jsonValue));
65
+ }
66
+
67
+ /**
68
+ * Return the detail of a contact.
69
+ */
70
+ async getByUuid(requestParameters: GetByUuidRequest, initOverrides?: RequestInit): Promise<ContactsContact> {
71
+ const response = await this.getByUuidRaw(requestParameters, initOverrides);
72
+ return await response.value();
73
+ }
74
+
75
+ }