@teemill/gtins 0.2.1 → 0.4.1

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 (77) hide show
  1. package/.openapi-generator/FILES +6 -10
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/api.ts +781 -0
  5. package/base.ts +86 -0
  6. package/common.ts +150 -0
  7. package/configuration.ts +110 -0
  8. package/dist/api.d.ts +447 -0
  9. package/dist/api.js +536 -0
  10. package/dist/base.d.ts +66 -0
  11. package/dist/base.js +65 -0
  12. package/dist/common.d.ts +65 -0
  13. package/dist/common.js +161 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +43 -0
  16. package/dist/esm/api.d.ts +447 -0
  17. package/dist/esm/api.js +529 -0
  18. package/dist/esm/base.d.ts +66 -0
  19. package/dist/esm/base.js +60 -0
  20. package/dist/esm/common.d.ts +65 -0
  21. package/dist/esm/common.js +149 -0
  22. package/dist/esm/configuration.d.ts +91 -0
  23. package/dist/esm/configuration.js +39 -0
  24. package/dist/esm/index.d.ts +13 -3
  25. package/dist/esm/index.js +13 -3
  26. package/dist/index.d.ts +13 -3
  27. package/dist/index.js +15 -5
  28. package/git_push.sh +57 -0
  29. package/index.ts +18 -0
  30. package/package.json +15 -3
  31. package/tsconfig.json +4 -6
  32. package/dist/apis/GTINsApi.d.ts +0 -77
  33. package/dist/apis/GTINsApi.js +0 -213
  34. package/dist/apis/index.d.ts +0 -1
  35. package/dist/apis/index.js +0 -19
  36. package/dist/esm/apis/GTINsApi.d.ts +0 -77
  37. package/dist/esm/apis/GTINsApi.js +0 -209
  38. package/dist/esm/apis/index.d.ts +0 -1
  39. package/dist/esm/apis/index.js +0 -3
  40. package/dist/esm/models/ApiError.d.ts +0 -37
  41. package/dist/esm/models/ApiError.js +0 -42
  42. package/dist/esm/models/AssignGtinRequest.d.ts +0 -31
  43. package/dist/esm/models/AssignGtinRequest.js +0 -40
  44. package/dist/esm/models/GTIN.d.ts +0 -37
  45. package/dist/esm/models/GTIN.js +0 -44
  46. package/dist/esm/models/GTINsResponse.d.ts +0 -38
  47. package/dist/esm/models/GTINsResponse.js +0 -41
  48. package/dist/esm/models/ImportGtins202Response.d.ts +0 -31
  49. package/dist/esm/models/ImportGtins202Response.js +0 -38
  50. package/dist/esm/models/index.d.ts +0 -5
  51. package/dist/esm/models/index.js +0 -7
  52. package/dist/esm/runtime.d.ts +0 -187
  53. package/dist/esm/runtime.js +0 -333
  54. package/dist/models/ApiError.d.ts +0 -37
  55. package/dist/models/ApiError.js +0 -49
  56. package/dist/models/AssignGtinRequest.d.ts +0 -31
  57. package/dist/models/AssignGtinRequest.js +0 -47
  58. package/dist/models/GTIN.d.ts +0 -37
  59. package/dist/models/GTIN.js +0 -51
  60. package/dist/models/GTINsResponse.d.ts +0 -38
  61. package/dist/models/GTINsResponse.js +0 -48
  62. package/dist/models/ImportGtins202Response.d.ts +0 -31
  63. package/dist/models/ImportGtins202Response.js +0 -45
  64. package/dist/models/index.d.ts +0 -5
  65. package/dist/models/index.js +0 -23
  66. package/dist/runtime.d.ts +0 -187
  67. package/dist/runtime.js +0 -349
  68. package/src/apis/GTINsApi.ts +0 -311
  69. package/src/apis/index.ts +0 -3
  70. package/src/index.ts +0 -5
  71. package/src/models/ApiError.ts +0 -69
  72. package/src/models/AssignGtinRequest.ts +0 -61
  73. package/src/models/GTIN.ts +0 -70
  74. package/src/models/GTINsResponse.ts +0 -75
  75. package/src/models/ImportGtins202Response.ts +0 -60
  76. package/src/models/index.ts +0 -7
  77. package/src/runtime.ts +0 -441
@@ -1,311 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * GTINs API
5
- * Manage GTINs
6
- *
7
- * The version of the OpenAPI document: 0.2.1
8
- * Contact: hello@teemill.com
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 type {
18
- ApiError,
19
- AssignGtinRequest,
20
- GTIN,
21
- GTINsResponse,
22
- ImportGtins202Response,
23
- } from '../models/index';
24
- import {
25
- ApiErrorFromJSON,
26
- ApiErrorToJSON,
27
- AssignGtinRequestFromJSON,
28
- AssignGtinRequestToJSON,
29
- GTINFromJSON,
30
- GTINToJSON,
31
- GTINsResponseFromJSON,
32
- GTINsResponseToJSON,
33
- ImportGtins202ResponseFromJSON,
34
- ImportGtins202ResponseToJSON,
35
- } from '../models/index';
36
-
37
- export interface AssignGtinOperationRequest {
38
- project: string;
39
- gtin: string;
40
- assignGtinRequest?: AssignGtinRequest;
41
- }
42
-
43
- export interface ImportGtinsRequest {
44
- project: string;
45
- body?: string;
46
- }
47
-
48
- export interface ListGtinsRequest {
49
- project: string;
50
- pageSize?: number;
51
- pageToken?: number;
52
- search?: string;
53
- }
54
-
55
- export interface UnassignGtinRequest {
56
- project: string;
57
- gtin: string;
58
- }
59
-
60
- /**
61
- *
62
- */
63
- export class GTINsApi extends runtime.BaseAPI {
64
-
65
- /**
66
- * Assign a GTIN to a variant
67
- * Assign GTIN
68
- */
69
- async assignGtinRaw(requestParameters: AssignGtinOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GTIN>> {
70
- if (requestParameters.project === null || requestParameters.project === undefined) {
71
- throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling assignGtin.');
72
- }
73
-
74
- if (requestParameters.gtin === null || requestParameters.gtin === undefined) {
75
- throw new runtime.RequiredError('gtin','Required parameter requestParameters.gtin was null or undefined when calling assignGtin.');
76
- }
77
-
78
- const queryParameters: any = {};
79
-
80
- if (requestParameters.project !== undefined) {
81
- queryParameters['project'] = requestParameters.project;
82
- }
83
-
84
- const headerParameters: runtime.HTTPHeaders = {};
85
-
86
- headerParameters['Content-Type'] = 'application/json';
87
-
88
- if (this.configuration && this.configuration.accessToken) {
89
- // oauth required
90
- headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
91
- }
92
-
93
- if (this.configuration && this.configuration.apiKey) {
94
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
95
- }
96
-
97
- const response = await this.request({
98
- path: `/v1/gtins/{gtin}/assign`.replace(`{${"gtin"}}`, encodeURIComponent(String(requestParameters.gtin))),
99
- method: 'POST',
100
- headers: headerParameters,
101
- query: queryParameters,
102
- body: AssignGtinRequestToJSON(requestParameters.assignGtinRequest),
103
- }, initOverrides);
104
-
105
- return new runtime.JSONApiResponse(response, (jsonValue) => GTINFromJSON(jsonValue));
106
- }
107
-
108
- /**
109
- * Assign a GTIN to a variant
110
- * Assign GTIN
111
- */
112
- async assignGtin(
113
- project: string, gtin: string,
114
- optionalParameters: runtime.OptionalOnly<AssignGtinOperationRequest> = {},
115
- initOverrides?: RequestInit | runtime.InitOverrideFunction
116
- ): Promise<GTIN> {
117
- const response = await this.assignGtinRaw(
118
- {
119
- project: project,gtin: gtin,
120
- ...optionalParameters,
121
- },
122
- initOverrides
123
- );
124
-
125
- return await response.value();
126
- }
127
-
128
- /**
129
- * Initiates a GTINs import from a CSV file. The result will be available as a notification in the dashboard.
130
- * Import GTINs
131
- */
132
- async importGtinsRaw(requestParameters: ImportGtinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ImportGtins202Response>> {
133
- if (requestParameters.project === null || requestParameters.project === undefined) {
134
- throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling importGtins.');
135
- }
136
-
137
- const queryParameters: any = {};
138
-
139
- if (requestParameters.project !== undefined) {
140
- queryParameters['project'] = requestParameters.project;
141
- }
142
-
143
- const headerParameters: runtime.HTTPHeaders = {};
144
-
145
- headerParameters['Content-Type'] = 'text/csv';
146
-
147
- if (this.configuration && this.configuration.accessToken) {
148
- // oauth required
149
- headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
150
- }
151
-
152
- if (this.configuration && this.configuration.apiKey) {
153
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
154
- }
155
-
156
- const response = await this.request({
157
- path: `/v1/gtins/import`,
158
- method: 'POST',
159
- headers: headerParameters,
160
- query: queryParameters,
161
- body: requestParameters.body as any,
162
- }, initOverrides);
163
-
164
- return new runtime.JSONApiResponse(response, (jsonValue) => ImportGtins202ResponseFromJSON(jsonValue));
165
- }
166
-
167
- /**
168
- * Initiates a GTINs import from a CSV file. The result will be available as a notification in the dashboard.
169
- * Import GTINs
170
- */
171
- async importGtins(
172
- project: string,
173
- optionalParameters: runtime.OptionalOnly<ImportGtinsRequest> = {},
174
- initOverrides?: RequestInit | runtime.InitOverrideFunction
175
- ): Promise<ImportGtins202Response> {
176
- const response = await this.importGtinsRaw(
177
- {
178
- project: project,
179
- ...optionalParameters,
180
- },
181
- initOverrides
182
- );
183
-
184
- return await response.value();
185
- }
186
-
187
- /**
188
- * List GTINs
189
- * List gtins
190
- */
191
- async listGtinsRaw(requestParameters: ListGtinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GTINsResponse>> {
192
- if (requestParameters.project === null || requestParameters.project === undefined) {
193
- throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling listGtins.');
194
- }
195
-
196
- const queryParameters: any = {};
197
-
198
- if (requestParameters.project !== undefined) {
199
- queryParameters['project'] = requestParameters.project;
200
- }
201
-
202
- if (requestParameters.pageSize !== undefined) {
203
- queryParameters['pageSize'] = requestParameters.pageSize;
204
- }
205
-
206
- if (requestParameters.pageToken !== undefined) {
207
- queryParameters['pageToken'] = requestParameters.pageToken;
208
- }
209
-
210
- if (requestParameters.search !== undefined) {
211
- queryParameters['search'] = requestParameters.search;
212
- }
213
-
214
- const headerParameters: runtime.HTTPHeaders = {};
215
-
216
- if (this.configuration && this.configuration.accessToken) {
217
- // oauth required
218
- headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
219
- }
220
-
221
- if (this.configuration && this.configuration.apiKey) {
222
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
223
- }
224
-
225
- const response = await this.request({
226
- path: `/v1/gtins`,
227
- method: 'GET',
228
- headers: headerParameters,
229
- query: queryParameters,
230
- }, initOverrides);
231
-
232
- return new runtime.JSONApiResponse(response, (jsonValue) => GTINsResponseFromJSON(jsonValue));
233
- }
234
-
235
- /**
236
- * List GTINs
237
- * List gtins
238
- */
239
- async listGtins(
240
- project: string,
241
- optionalParameters: runtime.OptionalOnly<ListGtinsRequest> = {},
242
- initOverrides?: RequestInit | runtime.InitOverrideFunction
243
- ): Promise<GTINsResponse> {
244
- const response = await this.listGtinsRaw(
245
- {
246
- project: project,
247
- ...optionalParameters,
248
- },
249
- initOverrides
250
- );
251
-
252
- return await response.value();
253
- }
254
-
255
- /**
256
- * Unassign a GTIN from a variant
257
- * Unassign GTIN
258
- */
259
- async unassignGtinRaw(requestParameters: UnassignGtinRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
260
- if (requestParameters.project === null || requestParameters.project === undefined) {
261
- throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling unassignGtin.');
262
- }
263
-
264
- if (requestParameters.gtin === null || requestParameters.gtin === undefined) {
265
- throw new runtime.RequiredError('gtin','Required parameter requestParameters.gtin was null or undefined when calling unassignGtin.');
266
- }
267
-
268
- const queryParameters: any = {};
269
-
270
- if (requestParameters.project !== undefined) {
271
- queryParameters['project'] = requestParameters.project;
272
- }
273
-
274
- const headerParameters: runtime.HTTPHeaders = {};
275
-
276
- if (this.configuration && this.configuration.accessToken) {
277
- // oauth required
278
- headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
279
- }
280
-
281
- if (this.configuration && this.configuration.apiKey) {
282
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
283
- }
284
-
285
- const response = await this.request({
286
- path: `/v1/gtins/{gtin}/unassign`.replace(`{${"gtin"}}`, encodeURIComponent(String(requestParameters.gtin))),
287
- method: 'POST',
288
- headers: headerParameters,
289
- query: queryParameters,
290
- }, initOverrides);
291
-
292
- return new runtime.VoidApiResponse(response);
293
- }
294
-
295
- /**
296
- * Unassign a GTIN from a variant
297
- * Unassign GTIN
298
- */
299
- async unassignGtin(
300
- project: string, gtin: string,
301
- initOverrides?: RequestInit | runtime.InitOverrideFunction
302
- ): Promise<void> {
303
- await this.unassignGtinRaw(
304
- {
305
- project: project,gtin: gtin,
306
- },
307
- initOverrides
308
- );
309
- }
310
-
311
- }
package/src/apis/index.ts DELETED
@@ -1,3 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export * from './GTINsApi';
package/src/index.ts DELETED
@@ -1,5 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export * from './runtime';
4
- export * from './apis/index';
5
- export * from './models/index';
@@ -1,69 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * GTINs API
5
- * Manage GTINs
6
- *
7
- * The version of the OpenAPI document: 0.2.1
8
- * Contact: hello@teemill.com
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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface ApiError
20
- */
21
- export interface ApiError {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof ApiError
26
- */
27
- code?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof ApiError
32
- */
33
- message: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the ApiError interface.
38
- */
39
- export function instanceOfApiError(value: object): boolean {
40
- if (!('message' in value)) return false;
41
- return true;
42
- }
43
-
44
- export function ApiErrorFromJSON(json: any): ApiError {
45
- return ApiErrorFromJSONTyped(json, false);
46
- }
47
-
48
- export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
-
54
- 'code': json['code'] == null ? undefined : json['code'],
55
- 'message': json['message'],
56
- };
57
- }
58
-
59
- export function ApiErrorToJSON(value?: ApiError | null): any {
60
- if (value == null) {
61
- return value;
62
- }
63
- return {
64
-
65
- 'code': value['code'],
66
- 'message': value['message'],
67
- };
68
- }
69
-
@@ -1,61 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * GTINs API
5
- * Manage GTINs
6
- *
7
- * The version of the OpenAPI document: 0.2.1
8
- * Contact: hello@teemill.com
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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface AssignGtinRequest
20
- */
21
- export interface AssignGtinRequest {
22
- /**
23
- * A reference to the resource location
24
- * @type {string}
25
- * @memberof AssignGtinRequest
26
- */
27
- variantRef: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the AssignGtinRequest interface.
32
- */
33
- export function instanceOfAssignGtinRequest(value: object): boolean {
34
- if (!('variantRef' in value)) return false;
35
- return true;
36
- }
37
-
38
- export function AssignGtinRequestFromJSON(json: any): AssignGtinRequest {
39
- return AssignGtinRequestFromJSONTyped(json, false);
40
- }
41
-
42
- export function AssignGtinRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignGtinRequest {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'variantRef': json['variantRef'],
49
- };
50
- }
51
-
52
- export function AssignGtinRequestToJSON(value?: AssignGtinRequest | null): any {
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
-
58
- 'variantRef': value['variantRef'],
59
- };
60
- }
61
-
@@ -1,70 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * GTINs API
5
- * Manage GTINs
6
- *
7
- * The version of the OpenAPI document: 0.2.1
8
- * Contact: hello@teemill.com
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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface GTIN
20
- */
21
- export interface GTIN {
22
- /**
23
- * The GTIN
24
- * @type {string}
25
- * @memberof GTIN
26
- */
27
- number: string;
28
- /**
29
- * A reference to the resource location
30
- * @type {string}
31
- * @memberof GTIN
32
- */
33
- variantRef: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the GTIN interface.
38
- */
39
- export function instanceOfGTIN(value: object): boolean {
40
- if (!('number' in value)) return false;
41
- if (!('variantRef' in value)) return false;
42
- return true;
43
- }
44
-
45
- export function GTINFromJSON(json: any): GTIN {
46
- return GTINFromJSONTyped(json, false);
47
- }
48
-
49
- export function GTINFromJSONTyped(json: any, ignoreDiscriminator: boolean): GTIN {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'number': json['number'],
56
- 'variantRef': json['variantRef'],
57
- };
58
- }
59
-
60
- export function GTINToJSON(value?: GTIN | null): any {
61
- if (value == null) {
62
- return value;
63
- }
64
- return {
65
-
66
- 'number': value['number'],
67
- 'variantRef': value['variantRef'],
68
- };
69
- }
70
-
@@ -1,75 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * GTINs API
5
- * Manage GTINs
6
- *
7
- * The version of the OpenAPI document: 0.2.1
8
- * Contact: hello@teemill.com
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
- import { mapValues } from '../runtime';
16
- import type { GTIN } from './GTIN';
17
- import {
18
- GTINFromJSON,
19
- GTINFromJSONTyped,
20
- GTINToJSON,
21
- } from './GTIN';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface GTINsResponse
27
- */
28
- export interface GTINsResponse {
29
- /**
30
- *
31
- * @type {Array<GTIN>}
32
- * @memberof GTINsResponse
33
- */
34
- gtins?: Array<GTIN>;
35
- /**
36
- *
37
- * @type {number}
38
- * @memberof GTINsResponse
39
- */
40
- nextPageToken?: number;
41
- }
42
-
43
- /**
44
- * Check if a given object implements the GTINsResponse interface.
45
- */
46
- export function instanceOfGTINsResponse(value: object): boolean {
47
- return true;
48
- }
49
-
50
- export function GTINsResponseFromJSON(json: any): GTINsResponse {
51
- return GTINsResponseFromJSONTyped(json, false);
52
- }
53
-
54
- export function GTINsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GTINsResponse {
55
- if (json == null) {
56
- return json;
57
- }
58
- return {
59
-
60
- 'gtins': json['gtins'] == null ? undefined : ((json['gtins'] as Array<any>).map(GTINFromJSON)),
61
- 'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
62
- };
63
- }
64
-
65
- export function GTINsResponseToJSON(value?: GTINsResponse | null): any {
66
- if (value == null) {
67
- return value;
68
- }
69
- return {
70
-
71
- 'gtins': value['gtins'] == null ? undefined : ((value['gtins'] as Array<any>).map(GTINToJSON)),
72
- 'nextPageToken': value['nextPageToken'],
73
- };
74
- }
75
-
@@ -1,60 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * GTINs API
5
- * Manage GTINs
6
- *
7
- * The version of the OpenAPI document: 0.2.1
8
- * Contact: hello@teemill.com
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
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface ImportGtins202Response
20
- */
21
- export interface ImportGtins202Response {
22
- /**
23
- * Id of the GTINs import
24
- * @type {string}
25
- * @memberof ImportGtins202Response
26
- */
27
- importId?: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the ImportGtins202Response interface.
32
- */
33
- export function instanceOfImportGtins202Response(value: object): boolean {
34
- return true;
35
- }
36
-
37
- export function ImportGtins202ResponseFromJSON(json: any): ImportGtins202Response {
38
- return ImportGtins202ResponseFromJSONTyped(json, false);
39
- }
40
-
41
- export function ImportGtins202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportGtins202Response {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
-
47
- 'importId': json['importId'] == null ? undefined : json['importId'],
48
- };
49
- }
50
-
51
- export function ImportGtins202ResponseToJSON(value?: ImportGtins202Response | null): any {
52
- if (value == null) {
53
- return value;
54
- }
55
- return {
56
-
57
- 'importId': value['importId'],
58
- };
59
- }
60
-
@@ -1,7 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export * from './ApiError';
4
- export * from './AssignGtinRequest';
5
- export * from './GTIN';
6
- export * from './GTINsResponse';
7
- export * from './ImportGtins202Response';