@equisoft/equisoft-connect-sdk-typescript 13.34.1-snapshot.20250907222501 → 13.35.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 (52) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/dist/apis/ContactsApi.d.ts +14 -1
  3. package/dist/apis/ContactsApi.js +42 -0
  4. package/dist/apis/DocumentsApi.d.ts +26 -0
  5. package/dist/apis/DocumentsApi.js +82 -0
  6. package/dist/esm/apis/ContactsApi.d.ts +14 -1
  7. package/dist/esm/apis/ContactsApi.js +43 -1
  8. package/dist/esm/apis/DocumentsApi.d.ts +26 -0
  9. package/dist/esm/apis/DocumentsApi.js +82 -0
  10. package/dist/esm/models/DocumentDocumentGroup.d.ts +39 -0
  11. package/dist/esm/models/DocumentDocumentGroup.js +44 -0
  12. package/dist/esm/models/DocumentDocumentValue.d.ts +39 -0
  13. package/dist/esm/models/DocumentDocumentValue.js +44 -0
  14. package/dist/esm/models/DocumentSystemType.d.ts +26 -0
  15. package/dist/esm/models/DocumentSystemType.js +44 -0
  16. package/dist/esm/models/DocumentsDocument.d.ts +78 -0
  17. package/dist/esm/models/DocumentsDocument.js +59 -0
  18. package/dist/esm/models/DocumentsDocumentContact.d.ts +32 -0
  19. package/dist/esm/models/DocumentsDocumentContact.js +41 -0
  20. package/dist/esm/models/DocumentsDocumentFile.d.ts +68 -0
  21. package/dist/esm/models/DocumentsDocumentFile.js +53 -0
  22. package/dist/esm/models/DocumentsListDocumentResponse.d.ts +39 -0
  23. package/dist/esm/models/DocumentsListDocumentResponse.js +46 -0
  24. package/dist/esm/models/index.d.ts +7 -0
  25. package/dist/esm/models/index.js +7 -0
  26. package/dist/models/DocumentDocumentGroup.d.ts +39 -0
  27. package/dist/models/DocumentDocumentGroup.js +51 -0
  28. package/dist/models/DocumentDocumentValue.d.ts +39 -0
  29. package/dist/models/DocumentDocumentValue.js +51 -0
  30. package/dist/models/DocumentSystemType.d.ts +26 -0
  31. package/dist/models/DocumentSystemType.js +52 -0
  32. package/dist/models/DocumentsDocument.d.ts +78 -0
  33. package/dist/models/DocumentsDocument.js +66 -0
  34. package/dist/models/DocumentsDocumentContact.d.ts +32 -0
  35. package/dist/models/DocumentsDocumentContact.js +48 -0
  36. package/dist/models/DocumentsDocumentFile.d.ts +68 -0
  37. package/dist/models/DocumentsDocumentFile.js +60 -0
  38. package/dist/models/DocumentsListDocumentResponse.d.ts +39 -0
  39. package/dist/models/DocumentsListDocumentResponse.js +53 -0
  40. package/dist/models/index.d.ts +7 -0
  41. package/dist/models/index.js +7 -0
  42. package/package.json +1 -1
  43. package/src/apis/ContactsApi.ts +59 -0
  44. package/src/apis/DocumentsApi.ts +110 -0
  45. package/src/models/DocumentDocumentGroup.ts +81 -0
  46. package/src/models/DocumentDocumentValue.ts +81 -0
  47. package/src/models/DocumentSystemType.ts +54 -0
  48. package/src/models/DocumentsDocument.ts +150 -0
  49. package/src/models/DocumentsDocumentContact.ts +65 -0
  50. package/src/models/DocumentsDocumentFile.ts +113 -0
  51. package/src/models/DocumentsListDocumentResponse.ts +82 -0
  52. package/src/models/index.ts +7 -0
@@ -79,6 +79,13 @@ src/models/DatabaseUpdateStatePayload.ts
79
79
  src/models/DatabasesDatabase.ts
80
80
  src/models/DatabasesListDatabasesResponse.ts
81
81
  src/models/DateOrDateTime.ts
82
+ src/models/DocumentDocumentGroup.ts
83
+ src/models/DocumentDocumentValue.ts
84
+ src/models/DocumentSystemType.ts
85
+ src/models/DocumentsDocument.ts
86
+ src/models/DocumentsDocumentContact.ts
87
+ src/models/DocumentsDocumentFile.ts
88
+ src/models/DocumentsListDocumentResponse.ts
82
89
  src/models/DsfCreateOrUpdateFinancialCenterResponse.ts
83
90
  src/models/DsfFinancialCenter.ts
84
91
  src/models/DsfFinancialCenterPayload.ts
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ContactPatchContactPayload, ContactsContact, ContactsLegacyContact, ContactsListContactResponse, InvestmentsListAccountResponse } from '../models/index';
13
+ import type { ContactPatchContactPayload, ContactsContact, ContactsLegacyContact, ContactsListContactResponse, DocumentsListDocumentResponse, InvestmentsListAccountResponse } from '../models/index';
14
14
  export interface GetByUuidRequest {
15
15
  contactUuid: string;
16
16
  acceptLanguage?: string;
@@ -40,6 +40,11 @@ export interface ListContactRequest {
40
40
  pageToken?: string;
41
41
  maxResults?: string;
42
42
  }
43
+ export interface ListContactDocumentRequest {
44
+ contactUuid: string;
45
+ pageToken?: string;
46
+ maxResults?: string;
47
+ }
43
48
  export interface ListContactInvestmentRequest {
44
49
  contactUuid: string;
45
50
  pageToken?: string;
@@ -69,6 +74,14 @@ export declare class ContactsApi extends runtime.BaseAPI {
69
74
  * List contact
70
75
  */
71
76
  listContact(requestParameters?: ListContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContactsListContactResponse>;
77
+ /**
78
+ * List contact documents
79
+ */
80
+ listContactDocumentRaw(requestParameters: ListContactDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentsListDocumentResponse>>;
81
+ /**
82
+ * List contact documents
83
+ */
84
+ listContactDocument(requestParameters: ListContactDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentsListDocumentResponse>;
72
85
  /**
73
86
  * List contact investments
74
87
  */
@@ -170,6 +170,48 @@ class ContactsApi extends runtime.BaseAPI {
170
170
  return yield response.value();
171
171
  });
172
172
  }
173
+ /**
174
+ * List contact documents
175
+ */
176
+ listContactDocumentRaw(requestParameters, initOverrides) {
177
+ return __awaiter(this, void 0, void 0, function* () {
178
+ if (requestParameters['contactUuid'] == null) {
179
+ throw new runtime.RequiredError('contactUuid', 'Required parameter "contactUuid" was null or undefined when calling listContactDocument().');
180
+ }
181
+ const queryParameters = {};
182
+ if (requestParameters['pageToken'] != null) {
183
+ queryParameters['pageToken'] = requestParameters['pageToken'];
184
+ }
185
+ if (requestParameters['maxResults'] != null) {
186
+ queryParameters['maxResults'] = requestParameters['maxResults'];
187
+ }
188
+ const headerParameters = {};
189
+ if (this.configuration && this.configuration.accessToken) {
190
+ // oauth required
191
+ const token = this.configuration.accessToken;
192
+ const tokenString = yield token("OAuth2", ["crm:contact", "crm:file"]);
193
+ if (tokenString) {
194
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
195
+ }
196
+ }
197
+ const response = yield this.request({
198
+ path: `/crm/api/v1/contacts/{contactUuid}/documents`.replace(`{${"contactUuid"}}`, encodeURIComponent(String(requestParameters['contactUuid']))),
199
+ method: 'GET',
200
+ headers: headerParameters,
201
+ query: queryParameters,
202
+ }, initOverrides);
203
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DocumentsListDocumentResponseFromJSON)(jsonValue));
204
+ });
205
+ }
206
+ /**
207
+ * List contact documents
208
+ */
209
+ listContactDocument(requestParameters, initOverrides) {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ const response = yield this.listContactDocumentRaw(requestParameters, initOverrides);
212
+ return yield response.value();
213
+ });
214
+ }
173
215
  /**
174
216
  * List contact investments
175
217
  */
@@ -10,12 +10,22 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
+ import type { DocumentsDocument, DocumentsListDocumentResponse } from '../models/index';
13
14
  export interface DeleteDocumentRequest {
14
15
  documentId: string;
15
16
  }
16
17
  export interface DeleteDocumentsRequest {
17
18
  documentIds: string;
18
19
  }
20
+ export interface GetByIdRequest {
21
+ documentId: string;
22
+ }
23
+ export interface ListDocumentRequest {
24
+ systemType?: string;
25
+ lastModifiedDate?: Date;
26
+ pageToken?: string;
27
+ maxResults?: string;
28
+ }
19
29
  /**
20
30
  *
21
31
  */
@@ -36,4 +46,20 @@ export declare class DocumentsApi extends runtime.BaseAPI {
36
46
  * Delete specified documents.
37
47
  */
38
48
  deleteDocuments(requestParameters: DeleteDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
49
+ /**
50
+ * Get document by id
51
+ */
52
+ getByIdRaw(requestParameters: GetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentsDocument>>;
53
+ /**
54
+ * Get document by id
55
+ */
56
+ getById(requestParameters: GetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentsDocument>;
57
+ /**
58
+ * List document
59
+ */
60
+ listDocumentRaw(requestParameters: ListDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentsListDocumentResponse>>;
61
+ /**
62
+ * List document
63
+ */
64
+ listDocument(requestParameters?: ListDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentsListDocumentResponse>;
39
65
  }
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.DocumentsApi = void 0;
26
26
  const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
27
28
  /**
28
29
  *
29
30
  */
@@ -101,5 +102,86 @@ class DocumentsApi extends runtime.BaseAPI {
101
102
  yield this.deleteDocumentsRaw(requestParameters, initOverrides);
102
103
  });
103
104
  }
105
+ /**
106
+ * Get document by id
107
+ */
108
+ getByIdRaw(requestParameters, initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ if (requestParameters['documentId'] == null) {
111
+ throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling getById().');
112
+ }
113
+ const queryParameters = {};
114
+ const headerParameters = {};
115
+ if (this.configuration && this.configuration.accessToken) {
116
+ // oauth required
117
+ const token = this.configuration.accessToken;
118
+ const tokenString = yield token("OAuth2", ["crm:file"]);
119
+ if (tokenString) {
120
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
121
+ }
122
+ }
123
+ const response = yield this.request({
124
+ path: `/crm/api/v1/documents/{documentId}`.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId']))),
125
+ method: 'GET',
126
+ headers: headerParameters,
127
+ query: queryParameters,
128
+ }, initOverrides);
129
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DocumentsDocumentFromJSON)(jsonValue));
130
+ });
131
+ }
132
+ /**
133
+ * Get document by id
134
+ */
135
+ getById(requestParameters, initOverrides) {
136
+ return __awaiter(this, void 0, void 0, function* () {
137
+ const response = yield this.getByIdRaw(requestParameters, initOverrides);
138
+ return yield response.value();
139
+ });
140
+ }
141
+ /**
142
+ * List document
143
+ */
144
+ listDocumentRaw(requestParameters, initOverrides) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ const queryParameters = {};
147
+ if (requestParameters['systemType'] != null) {
148
+ queryParameters['systemType'] = requestParameters['systemType'];
149
+ }
150
+ if (requestParameters['lastModifiedDate'] != null) {
151
+ queryParameters['lastModifiedDate'] = requestParameters['lastModifiedDate'].toISOString().substring(0, 10);
152
+ }
153
+ if (requestParameters['pageToken'] != null) {
154
+ queryParameters['pageToken'] = requestParameters['pageToken'];
155
+ }
156
+ if (requestParameters['maxResults'] != null) {
157
+ queryParameters['maxResults'] = requestParameters['maxResults'];
158
+ }
159
+ const headerParameters = {};
160
+ if (this.configuration && this.configuration.accessToken) {
161
+ // oauth required
162
+ const token = this.configuration.accessToken;
163
+ const tokenString = yield token("OAuth2", ["crm:file"]);
164
+ if (tokenString) {
165
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
166
+ }
167
+ }
168
+ const response = yield this.request({
169
+ path: `/crm/api/v1/documents`,
170
+ method: 'GET',
171
+ headers: headerParameters,
172
+ query: queryParameters,
173
+ }, initOverrides);
174
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DocumentsListDocumentResponseFromJSON)(jsonValue));
175
+ });
176
+ }
177
+ /**
178
+ * List document
179
+ */
180
+ listDocument() {
181
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
182
+ const response = yield this.listDocumentRaw(requestParameters, initOverrides);
183
+ return yield response.value();
184
+ });
185
+ }
104
186
  }
105
187
  exports.DocumentsApi = DocumentsApi;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ContactPatchContactPayload, ContactsContact, ContactsLegacyContact, ContactsListContactResponse, InvestmentsListAccountResponse } from '../models/index';
13
+ import type { ContactPatchContactPayload, ContactsContact, ContactsLegacyContact, ContactsListContactResponse, DocumentsListDocumentResponse, InvestmentsListAccountResponse } from '../models/index';
14
14
  export interface GetByUuidRequest {
15
15
  contactUuid: string;
16
16
  acceptLanguage?: string;
@@ -40,6 +40,11 @@ export interface ListContactRequest {
40
40
  pageToken?: string;
41
41
  maxResults?: string;
42
42
  }
43
+ export interface ListContactDocumentRequest {
44
+ contactUuid: string;
45
+ pageToken?: string;
46
+ maxResults?: string;
47
+ }
43
48
  export interface ListContactInvestmentRequest {
44
49
  contactUuid: string;
45
50
  pageToken?: string;
@@ -69,6 +74,14 @@ export declare class ContactsApi extends runtime.BaseAPI {
69
74
  * List contact
70
75
  */
71
76
  listContact(requestParameters?: ListContactRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContactsListContactResponse>;
77
+ /**
78
+ * List contact documents
79
+ */
80
+ listContactDocumentRaw(requestParameters: ListContactDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentsListDocumentResponse>>;
81
+ /**
82
+ * List contact documents
83
+ */
84
+ listContactDocument(requestParameters: ListContactDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentsListDocumentResponse>;
72
85
  /**
73
86
  * List contact investments
74
87
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ContactPatchContactPayloadToJSON, ContactsContactFromJSON, ContactsLegacyContactFromJSON, ContactsListContactResponseFromJSON, InvestmentsListAccountResponseFromJSON, } from '../models/index';
24
+ import { ContactPatchContactPayloadToJSON, ContactsContactFromJSON, ContactsLegacyContactFromJSON, ContactsListContactResponseFromJSON, DocumentsListDocumentResponseFromJSON, InvestmentsListAccountResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -167,6 +167,48 @@ export class ContactsApi extends runtime.BaseAPI {
167
167
  return yield response.value();
168
168
  });
169
169
  }
170
+ /**
171
+ * List contact documents
172
+ */
173
+ listContactDocumentRaw(requestParameters, initOverrides) {
174
+ return __awaiter(this, void 0, void 0, function* () {
175
+ if (requestParameters['contactUuid'] == null) {
176
+ throw new runtime.RequiredError('contactUuid', 'Required parameter "contactUuid" was null or undefined when calling listContactDocument().');
177
+ }
178
+ const queryParameters = {};
179
+ if (requestParameters['pageToken'] != null) {
180
+ queryParameters['pageToken'] = requestParameters['pageToken'];
181
+ }
182
+ if (requestParameters['maxResults'] != null) {
183
+ queryParameters['maxResults'] = requestParameters['maxResults'];
184
+ }
185
+ const headerParameters = {};
186
+ if (this.configuration && this.configuration.accessToken) {
187
+ // oauth required
188
+ const token = this.configuration.accessToken;
189
+ const tokenString = yield token("OAuth2", ["crm:contact", "crm:file"]);
190
+ if (tokenString) {
191
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
192
+ }
193
+ }
194
+ const response = yield this.request({
195
+ path: `/crm/api/v1/contacts/{contactUuid}/documents`.replace(`{${"contactUuid"}}`, encodeURIComponent(String(requestParameters['contactUuid']))),
196
+ method: 'GET',
197
+ headers: headerParameters,
198
+ query: queryParameters,
199
+ }, initOverrides);
200
+ return new runtime.JSONApiResponse(response, (jsonValue) => DocumentsListDocumentResponseFromJSON(jsonValue));
201
+ });
202
+ }
203
+ /**
204
+ * List contact documents
205
+ */
206
+ listContactDocument(requestParameters, initOverrides) {
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ const response = yield this.listContactDocumentRaw(requestParameters, initOverrides);
209
+ return yield response.value();
210
+ });
211
+ }
170
212
  /**
171
213
  * List contact investments
172
214
  */
@@ -10,12 +10,22 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
+ import type { DocumentsDocument, DocumentsListDocumentResponse } from '../models/index';
13
14
  export interface DeleteDocumentRequest {
14
15
  documentId: string;
15
16
  }
16
17
  export interface DeleteDocumentsRequest {
17
18
  documentIds: string;
18
19
  }
20
+ export interface GetByIdRequest {
21
+ documentId: string;
22
+ }
23
+ export interface ListDocumentRequest {
24
+ systemType?: string;
25
+ lastModifiedDate?: Date;
26
+ pageToken?: string;
27
+ maxResults?: string;
28
+ }
19
29
  /**
20
30
  *
21
31
  */
@@ -36,4 +46,20 @@ export declare class DocumentsApi extends runtime.BaseAPI {
36
46
  * Delete specified documents.
37
47
  */
38
48
  deleteDocuments(requestParameters: DeleteDocumentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
49
+ /**
50
+ * Get document by id
51
+ */
52
+ getByIdRaw(requestParameters: GetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentsDocument>>;
53
+ /**
54
+ * Get document by id
55
+ */
56
+ getById(requestParameters: GetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentsDocument>;
57
+ /**
58
+ * List document
59
+ */
60
+ listDocumentRaw(requestParameters: ListDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentsListDocumentResponse>>;
61
+ /**
62
+ * List document
63
+ */
64
+ listDocument(requestParameters?: ListDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentsListDocumentResponse>;
39
65
  }
@@ -21,6 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
+ import { DocumentsDocumentFromJSON, DocumentsListDocumentResponseFromJSON, } from '../models/index';
24
25
  /**
25
26
  *
26
27
  */
@@ -98,4 +99,85 @@ export class DocumentsApi extends runtime.BaseAPI {
98
99
  yield this.deleteDocumentsRaw(requestParameters, initOverrides);
99
100
  });
100
101
  }
102
+ /**
103
+ * Get document by id
104
+ */
105
+ getByIdRaw(requestParameters, initOverrides) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ if (requestParameters['documentId'] == null) {
108
+ throw new runtime.RequiredError('documentId', 'Required parameter "documentId" was null or undefined when calling getById().');
109
+ }
110
+ const queryParameters = {};
111
+ const headerParameters = {};
112
+ if (this.configuration && this.configuration.accessToken) {
113
+ // oauth required
114
+ const token = this.configuration.accessToken;
115
+ const tokenString = yield token("OAuth2", ["crm:file"]);
116
+ if (tokenString) {
117
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
118
+ }
119
+ }
120
+ const response = yield this.request({
121
+ path: `/crm/api/v1/documents/{documentId}`.replace(`{${"documentId"}}`, encodeURIComponent(String(requestParameters['documentId']))),
122
+ method: 'GET',
123
+ headers: headerParameters,
124
+ query: queryParameters,
125
+ }, initOverrides);
126
+ return new runtime.JSONApiResponse(response, (jsonValue) => DocumentsDocumentFromJSON(jsonValue));
127
+ });
128
+ }
129
+ /**
130
+ * Get document by id
131
+ */
132
+ getById(requestParameters, initOverrides) {
133
+ return __awaiter(this, void 0, void 0, function* () {
134
+ const response = yield this.getByIdRaw(requestParameters, initOverrides);
135
+ return yield response.value();
136
+ });
137
+ }
138
+ /**
139
+ * List document
140
+ */
141
+ listDocumentRaw(requestParameters, initOverrides) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const queryParameters = {};
144
+ if (requestParameters['systemType'] != null) {
145
+ queryParameters['systemType'] = requestParameters['systemType'];
146
+ }
147
+ if (requestParameters['lastModifiedDate'] != null) {
148
+ queryParameters['lastModifiedDate'] = requestParameters['lastModifiedDate'].toISOString().substring(0, 10);
149
+ }
150
+ if (requestParameters['pageToken'] != null) {
151
+ queryParameters['pageToken'] = requestParameters['pageToken'];
152
+ }
153
+ if (requestParameters['maxResults'] != null) {
154
+ queryParameters['maxResults'] = requestParameters['maxResults'];
155
+ }
156
+ const headerParameters = {};
157
+ if (this.configuration && this.configuration.accessToken) {
158
+ // oauth required
159
+ const token = this.configuration.accessToken;
160
+ const tokenString = yield token("OAuth2", ["crm:file"]);
161
+ if (tokenString) {
162
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
163
+ }
164
+ }
165
+ const response = yield this.request({
166
+ path: `/crm/api/v1/documents`,
167
+ method: 'GET',
168
+ headers: headerParameters,
169
+ query: queryParameters,
170
+ }, initOverrides);
171
+ return new runtime.JSONApiResponse(response, (jsonValue) => DocumentsListDocumentResponseFromJSON(jsonValue));
172
+ });
173
+ }
174
+ /**
175
+ * List document
176
+ */
177
+ listDocument() {
178
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
179
+ const response = yield this.listDocumentRaw(requestParameters, initOverrides);
180
+ return yield response.value();
181
+ });
182
+ }
101
183
  }
@@ -0,0 +1,39 @@
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 type { FieldValueLocalizedString } from './FieldValueLocalizedString';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DocumentDocumentGroup
17
+ */
18
+ export interface DocumentDocumentGroup {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof DocumentDocumentGroup
23
+ */
24
+ id?: number;
25
+ /**
26
+ *
27
+ * @type {FieldValueLocalizedString}
28
+ * @memberof DocumentDocumentGroup
29
+ */
30
+ label?: FieldValueLocalizedString;
31
+ }
32
+ /**
33
+ * Check if a given object implements the DocumentDocumentGroup interface.
34
+ */
35
+ export declare function instanceOfDocumentDocumentGroup(value: object): value is DocumentDocumentGroup;
36
+ export declare function DocumentDocumentGroupFromJSON(json: any): DocumentDocumentGroup;
37
+ export declare function DocumentDocumentGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentDocumentGroup;
38
+ export declare function DocumentDocumentGroupToJSON(json: any): DocumentDocumentGroup;
39
+ export declare function DocumentDocumentGroupToJSONTyped(value?: DocumentDocumentGroup | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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
+ import { FieldValueLocalizedStringFromJSON, FieldValueLocalizedStringToJSON, } from './FieldValueLocalizedString';
15
+ /**
16
+ * Check if a given object implements the DocumentDocumentGroup interface.
17
+ */
18
+ export function instanceOfDocumentDocumentGroup(value) {
19
+ return true;
20
+ }
21
+ export function DocumentDocumentGroupFromJSON(json) {
22
+ return DocumentDocumentGroupFromJSONTyped(json, false);
23
+ }
24
+ export function DocumentDocumentGroupFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'id': json['id'] == null ? undefined : json['id'],
30
+ 'label': json['label'] == null ? undefined : FieldValueLocalizedStringFromJSON(json['label']),
31
+ };
32
+ }
33
+ export function DocumentDocumentGroupToJSON(json) {
34
+ return DocumentDocumentGroupToJSONTyped(json, false);
35
+ }
36
+ export function DocumentDocumentGroupToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'id': value['id'],
42
+ 'label': FieldValueLocalizedStringToJSON(value['label']),
43
+ };
44
+ }
@@ -0,0 +1,39 @@
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 type { FieldValueLocalizedString } from './FieldValueLocalizedString';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DocumentDocumentValue
17
+ */
18
+ export interface DocumentDocumentValue {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof DocumentDocumentValue
23
+ */
24
+ id?: number;
25
+ /**
26
+ *
27
+ * @type {FieldValueLocalizedString}
28
+ * @memberof DocumentDocumentValue
29
+ */
30
+ label?: FieldValueLocalizedString;
31
+ }
32
+ /**
33
+ * Check if a given object implements the DocumentDocumentValue interface.
34
+ */
35
+ export declare function instanceOfDocumentDocumentValue(value: object): value is DocumentDocumentValue;
36
+ export declare function DocumentDocumentValueFromJSON(json: any): DocumentDocumentValue;
37
+ export declare function DocumentDocumentValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentDocumentValue;
38
+ export declare function DocumentDocumentValueToJSON(json: any): DocumentDocumentValue;
39
+ export declare function DocumentDocumentValueToJSONTyped(value?: DocumentDocumentValue | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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
+ import { FieldValueLocalizedStringFromJSON, FieldValueLocalizedStringToJSON, } from './FieldValueLocalizedString';
15
+ /**
16
+ * Check if a given object implements the DocumentDocumentValue interface.
17
+ */
18
+ export function instanceOfDocumentDocumentValue(value) {
19
+ return true;
20
+ }
21
+ export function DocumentDocumentValueFromJSON(json) {
22
+ return DocumentDocumentValueFromJSONTyped(json, false);
23
+ }
24
+ export function DocumentDocumentValueFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'id': json['id'] == null ? undefined : json['id'],
30
+ 'label': json['label'] == null ? undefined : FieldValueLocalizedStringFromJSON(json['label']),
31
+ };
32
+ }
33
+ export function DocumentDocumentValueToJSON(json) {
34
+ return DocumentDocumentValueToJSONTyped(json, false);
35
+ }
36
+ export function DocumentDocumentValueToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'id': value['id'],
42
+ 'label': FieldValueLocalizedStringToJSON(value['label']),
43
+ };
44
+ }
@@ -0,0 +1,26 @@
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
+ * Document's system type.
14
+ * @export
15
+ */
16
+ export declare const DocumentSystemType: {
17
+ readonly DOCUMENT: "DOCUMENT";
18
+ readonly VOICE: "VOICE";
19
+ readonly unknown_default_open_api: "11184809";
20
+ };
21
+ export type DocumentSystemType = typeof DocumentSystemType[keyof typeof DocumentSystemType];
22
+ export declare function instanceOfDocumentSystemType(value: any): boolean;
23
+ export declare function DocumentSystemTypeFromJSON(json: any): DocumentSystemType;
24
+ export declare function DocumentSystemTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentSystemType;
25
+ export declare function DocumentSystemTypeToJSON(value?: DocumentSystemType | null): any;
26
+ export declare function DocumentSystemTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DocumentSystemType;