@teemill/warehouse-packaging 0.1.0 → 0.1.2

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 (59) hide show
  1. package/README.md +41 -3
  2. package/api.ts +364 -0
  3. package/base.ts +86 -0
  4. package/common.ts +150 -0
  5. package/configuration.ts +115 -0
  6. package/dist/api.d.ts +232 -0
  7. package/dist/api.js +230 -0
  8. package/dist/base.d.ts +66 -0
  9. package/dist/base.js +65 -0
  10. package/dist/common.d.ts +65 -0
  11. package/dist/common.js +161 -0
  12. package/dist/configuration.d.ts +91 -0
  13. package/dist/configuration.js +44 -0
  14. package/dist/esm/api.d.ts +232 -0
  15. package/dist/esm/api.js +223 -0
  16. package/dist/esm/base.d.ts +66 -0
  17. package/dist/esm/base.js +60 -0
  18. package/dist/esm/common.d.ts +65 -0
  19. package/dist/esm/common.js +149 -0
  20. package/dist/esm/configuration.d.ts +91 -0
  21. package/dist/esm/configuration.js +40 -0
  22. package/dist/esm/index.d.ts +13 -0
  23. package/dist/esm/index.js +15 -0
  24. package/dist/index.d.ts +13 -3
  25. package/dist/index.js +15 -5
  26. package/docs/ApiError.md +22 -0
  27. package/docs/Packaging.md +28 -0
  28. package/docs/PackagingApi.md +128 -0
  29. package/docs/PackagingListResponse.md +22 -0
  30. package/git_push.sh +57 -0
  31. package/index.ts +18 -0
  32. package/package.json +18 -4
  33. package/tsconfig.esm.json +7 -0
  34. package/tsconfig.json +4 -6
  35. package/.openapi-generator/FILES +0 -13
  36. package/.openapi-generator/VERSION +0 -1
  37. package/.openapi-generator-ignore +0 -23
  38. package/dist/apis/PackagingApi.d.ts +0 -47
  39. package/dist/apis/PackagingApi.js +0 -227
  40. package/dist/apis/index.d.ts +0 -1
  41. package/dist/apis/index.js +0 -19
  42. package/dist/models/ApiError.d.ts +0 -37
  43. package/dist/models/ApiError.js +0 -53
  44. package/dist/models/Packaging.d.ts +0 -55
  45. package/dist/models/Packaging.js +0 -62
  46. package/dist/models/PackagingListResponse.d.ts +0 -38
  47. package/dist/models/PackagingListResponse.js +0 -54
  48. package/dist/models/index.d.ts +0 -3
  49. package/dist/models/index.js +0 -21
  50. package/dist/runtime.d.ts +0 -187
  51. package/dist/runtime.js +0 -565
  52. package/src/apis/PackagingApi.ts +0 -169
  53. package/src/apis/index.ts +0 -3
  54. package/src/index.ts +0 -5
  55. package/src/models/ApiError.ts +0 -74
  56. package/src/models/Packaging.ts +0 -102
  57. package/src/models/PackagingListResponse.ts +0 -82
  58. package/src/models/index.ts +0 -5
  59. package/src/runtime.ts +0 -441
@@ -1,227 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Packaging API
6
- * Manage Packaging Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
- *
8
- * The version of the OpenAPI document: 0.1.0
9
- * Contact: hello@teemill.com
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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
- return new (P || (P = Promise))(function (resolve, reject) {
44
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
- step((generator = generator.apply(thisArg, _arguments || [])).next());
48
- });
49
- };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
- function verb(n) { return function (v) { return step([n, v]); }; }
54
- function step(op) {
55
- if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
- if (y = 0, t) op = [op[0] & 2, t.value];
59
- switch (op[0]) {
60
- case 0: case 1: t = op; break;
61
- case 4: _.label++; return { value: op[1], done: false };
62
- case 5: _.label++; y = op[1]; op = [0]; continue;
63
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
- default:
65
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
- if (t[2]) _.ops.pop();
70
- _.trys.pop(); continue;
71
- }
72
- op = body.call(thisArg, _);
73
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
- }
76
- };
77
- Object.defineProperty(exports, "__esModule", { value: true });
78
- exports.PackagingApi = void 0;
79
- var runtime = require("../runtime");
80
- var index_1 = require("../models/index");
81
- /**
82
- *
83
- */
84
- var PackagingApi = /** @class */ (function (_super) {
85
- __extends(PackagingApi, _super);
86
- function PackagingApi() {
87
- return _super !== null && _super.apply(this, arguments) || this;
88
- }
89
- /**
90
- * Get packaging
91
- * Get a packaging resource
92
- */
93
- PackagingApi.prototype.getPackagingRaw = function (requestParameters, initOverrides) {
94
- return __awaiter(this, void 0, void 0, function () {
95
- var queryParameters, headerParameters, _a, _b, response;
96
- return __generator(this, function (_c) {
97
- switch (_c.label) {
98
- case 0:
99
- if (requestParameters.project === null || requestParameters.project === undefined) {
100
- throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getPackaging.');
101
- }
102
- if (requestParameters.packagingId === null || requestParameters.packagingId === undefined) {
103
- throw new runtime.RequiredError('packagingId', 'Required parameter requestParameters.packagingId was null or undefined when calling getPackaging.');
104
- }
105
- queryParameters = {};
106
- if (requestParameters.project !== undefined) {
107
- queryParameters['project'] = requestParameters.project;
108
- }
109
- headerParameters = {};
110
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
111
- // oauth required
112
- _a = headerParameters;
113
- _b = "Authorization";
114
- return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
115
- case 1:
116
- // oauth required
117
- _a[_b] = _c.sent();
118
- _c.label = 2;
119
- case 2:
120
- if (this.configuration && this.configuration.apiKey) {
121
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
122
- }
123
- return [4 /*yield*/, this.request({
124
- path: "/v1/warehouse/packaging/{packagingId}".replace("{".concat("packagingId", "}"), encodeURIComponent(String(requestParameters.packagingId))),
125
- method: 'GET',
126
- headers: headerParameters,
127
- query: queryParameters,
128
- }, initOverrides)];
129
- case 3:
130
- response = _c.sent();
131
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PackagingFromJSON)(jsonValue); })];
132
- }
133
- });
134
- });
135
- };
136
- /**
137
- * Get packaging
138
- * Get a packaging resource
139
- */
140
- PackagingApi.prototype.getPackaging = function (project, packagingId, initOverrides) {
141
- return __awaiter(this, void 0, void 0, function () {
142
- var response;
143
- return __generator(this, function (_a) {
144
- switch (_a.label) {
145
- case 0: return [4 /*yield*/, this.getPackagingRaw({
146
- project: project, packagingId: packagingId,
147
- }, initOverrides)];
148
- case 1:
149
- response = _a.sent();
150
- return [4 /*yield*/, response.value()];
151
- case 2: return [2 /*return*/, _a.sent()];
152
- }
153
- });
154
- });
155
- };
156
- /**
157
- * Lists packaging items paginated into chunks
158
- * List packaging
159
- */
160
- PackagingApi.prototype.listPackagingRaw = function (requestParameters, initOverrides) {
161
- return __awaiter(this, void 0, void 0, function () {
162
- var queryParameters, headerParameters, _a, _b, response;
163
- return __generator(this, function (_c) {
164
- switch (_c.label) {
165
- case 0:
166
- if (requestParameters.project === null || requestParameters.project === undefined) {
167
- throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling listPackaging.');
168
- }
169
- queryParameters = {};
170
- if (requestParameters.project !== undefined) {
171
- queryParameters['project'] = requestParameters.project;
172
- }
173
- if (requestParameters.pageToken !== undefined) {
174
- queryParameters['pageToken'] = requestParameters.pageToken;
175
- }
176
- if (requestParameters.pageSize !== undefined) {
177
- queryParameters['pageSize'] = requestParameters.pageSize;
178
- }
179
- headerParameters = {};
180
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
181
- // oauth required
182
- _a = headerParameters;
183
- _b = "Authorization";
184
- return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
185
- case 1:
186
- // oauth required
187
- _a[_b] = _c.sent();
188
- _c.label = 2;
189
- case 2:
190
- if (this.configuration && this.configuration.apiKey) {
191
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
192
- }
193
- return [4 /*yield*/, this.request({
194
- path: "/v1/warehouse/packaging",
195
- method: 'GET',
196
- headers: headerParameters,
197
- query: queryParameters,
198
- }, initOverrides)];
199
- case 3:
200
- response = _c.sent();
201
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PackagingListResponseFromJSON)(jsonValue); })];
202
- }
203
- });
204
- });
205
- };
206
- /**
207
- * Lists packaging items paginated into chunks
208
- * List packaging
209
- */
210
- PackagingApi.prototype.listPackaging = function (project, optionalParameters, initOverrides) {
211
- if (optionalParameters === void 0) { optionalParameters = {}; }
212
- return __awaiter(this, void 0, void 0, function () {
213
- var response;
214
- return __generator(this, function (_a) {
215
- switch (_a.label) {
216
- case 0: return [4 /*yield*/, this.listPackagingRaw(__assign({ project: project }, optionalParameters), initOverrides)];
217
- case 1:
218
- response = _a.sent();
219
- return [4 /*yield*/, response.value()];
220
- case 2: return [2 /*return*/, _a.sent()];
221
- }
222
- });
223
- });
224
- };
225
- return PackagingApi;
226
- }(runtime.BaseAPI));
227
- exports.PackagingApi = PackagingApi;
@@ -1 +0,0 @@
1
- export * from './PackagingApi';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- /* tslint:disable */
18
- /* eslint-disable */
19
- __exportStar(require("./PackagingApi"), exports);
@@ -1,37 +0,0 @@
1
- /**
2
- * Packaging API
3
- * Manage Packaging Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- * Contact: hello@teemill.com
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 ApiError
16
- */
17
- export interface ApiError {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof ApiError
22
- */
23
- code?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof ApiError
28
- */
29
- message: string;
30
- }
31
- /**
32
- * Check if a given object implements the ApiError interface.
33
- */
34
- export declare function instanceOfApiError(value: object): boolean;
35
- export declare function ApiErrorFromJSON(json: any): ApiError;
36
- export declare function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError;
37
- export declare function ApiErrorToJSON(value?: ApiError | null): any;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Packaging API
6
- * Manage Packaging Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
- *
8
- * The version of the OpenAPI document: 0.1.0
9
- * Contact: hello@teemill.com
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.ApiErrorToJSON = exports.ApiErrorFromJSONTyped = exports.ApiErrorFromJSON = exports.instanceOfApiError = void 0;
17
- var runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the ApiError interface.
20
- */
21
- function instanceOfApiError(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "message" in value;
24
- return isInstance;
25
- }
26
- exports.instanceOfApiError = instanceOfApiError;
27
- function ApiErrorFromJSON(json) {
28
- return ApiErrorFromJSONTyped(json, false);
29
- }
30
- exports.ApiErrorFromJSON = ApiErrorFromJSON;
31
- function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
33
- return json;
34
- }
35
- return {
36
- 'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
37
- 'message': json['message'],
38
- };
39
- }
40
- exports.ApiErrorFromJSONTyped = ApiErrorFromJSONTyped;
41
- function ApiErrorToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
47
- }
48
- return {
49
- 'code': value.code,
50
- 'message': value.message,
51
- };
52
- }
53
- exports.ApiErrorToJSON = ApiErrorToJSON;
@@ -1,55 +0,0 @@
1
- /**
2
- * Packaging API
3
- * Manage Packaging Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- * Contact: hello@teemill.com
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 Packaging
16
- */
17
- export interface Packaging {
18
- /**
19
- * Unique object identifier
20
- * @type {string}
21
- * @memberof Packaging
22
- */
23
- id: string;
24
- /**
25
- * A reference to the resource location
26
- * @type {string}
27
- * @memberof Packaging
28
- */
29
- ref: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof Packaging
34
- */
35
- name: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof Packaging
40
- */
41
- image: string;
42
- /**
43
- * Weight in grams
44
- * @type {number}
45
- * @memberof Packaging
46
- */
47
- weight: number;
48
- }
49
- /**
50
- * Check if a given object implements the Packaging interface.
51
- */
52
- export declare function instanceOfPackaging(value: object): boolean;
53
- export declare function PackagingFromJSON(json: any): Packaging;
54
- export declare function PackagingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Packaging;
55
- export declare function PackagingToJSON(value?: Packaging | null): any;
@@ -1,62 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Packaging API
6
- * Manage Packaging Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
- *
8
- * The version of the OpenAPI document: 0.1.0
9
- * Contact: hello@teemill.com
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.PackagingToJSON = exports.PackagingFromJSONTyped = exports.PackagingFromJSON = exports.instanceOfPackaging = void 0;
17
- /**
18
- * Check if a given object implements the Packaging interface.
19
- */
20
- function instanceOfPackaging(value) {
21
- var isInstance = true;
22
- isInstance = isInstance && "id" in value;
23
- isInstance = isInstance && "ref" in value;
24
- isInstance = isInstance && "name" in value;
25
- isInstance = isInstance && "image" in value;
26
- isInstance = isInstance && "weight" in value;
27
- return isInstance;
28
- }
29
- exports.instanceOfPackaging = instanceOfPackaging;
30
- function PackagingFromJSON(json) {
31
- return PackagingFromJSONTyped(json, false);
32
- }
33
- exports.PackagingFromJSON = PackagingFromJSON;
34
- function PackagingFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
36
- return json;
37
- }
38
- return {
39
- 'id': json['id'],
40
- 'ref': json['ref'],
41
- 'name': json['name'],
42
- 'image': json['image'],
43
- 'weight': json['weight'],
44
- };
45
- }
46
- exports.PackagingFromJSONTyped = PackagingFromJSONTyped;
47
- function PackagingToJSON(value) {
48
- if (value === undefined) {
49
- return undefined;
50
- }
51
- if (value === null) {
52
- return null;
53
- }
54
- return {
55
- 'id': value.id,
56
- 'ref': value.ref,
57
- 'name': value.name,
58
- 'image': value.image,
59
- 'weight': value.weight,
60
- };
61
- }
62
- exports.PackagingToJSON = PackagingToJSON;
@@ -1,38 +0,0 @@
1
- /**
2
- * Packaging API
3
- * Manage Packaging Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- * Contact: hello@teemill.com
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 { Packaging } from './Packaging';
13
- /**
14
- *
15
- * @export
16
- * @interface PackagingListResponse
17
- */
18
- export interface PackagingListResponse {
19
- /**
20
- *
21
- * @type {Array<Packaging>}
22
- * @memberof PackagingListResponse
23
- */
24
- packaging: Array<Packaging>;
25
- /**
26
- *
27
- * @type {number}
28
- * @memberof PackagingListResponse
29
- */
30
- nextPageToken: number;
31
- }
32
- /**
33
- * Check if a given object implements the PackagingListResponse interface.
34
- */
35
- export declare function instanceOfPackagingListResponse(value: object): boolean;
36
- export declare function PackagingListResponseFromJSON(json: any): PackagingListResponse;
37
- export declare function PackagingListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PackagingListResponse;
38
- export declare function PackagingListResponseToJSON(value?: PackagingListResponse | null): any;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Packaging API
6
- * Manage Packaging Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
- *
8
- * The version of the OpenAPI document: 0.1.0
9
- * Contact: hello@teemill.com
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.PackagingListResponseToJSON = exports.PackagingListResponseFromJSONTyped = exports.PackagingListResponseFromJSON = exports.instanceOfPackagingListResponse = void 0;
17
- var Packaging_1 = require("./Packaging");
18
- /**
19
- * Check if a given object implements the PackagingListResponse interface.
20
- */
21
- function instanceOfPackagingListResponse(value) {
22
- var isInstance = true;
23
- isInstance = isInstance && "packaging" in value;
24
- isInstance = isInstance && "nextPageToken" in value;
25
- return isInstance;
26
- }
27
- exports.instanceOfPackagingListResponse = instanceOfPackagingListResponse;
28
- function PackagingListResponseFromJSON(json) {
29
- return PackagingListResponseFromJSONTyped(json, false);
30
- }
31
- exports.PackagingListResponseFromJSON = PackagingListResponseFromJSON;
32
- function PackagingListResponseFromJSONTyped(json, ignoreDiscriminator) {
33
- if ((json === undefined) || (json === null)) {
34
- return json;
35
- }
36
- return {
37
- 'packaging': (json['packaging'].map(Packaging_1.PackagingFromJSON)),
38
- 'nextPageToken': json['nextPageToken'],
39
- };
40
- }
41
- exports.PackagingListResponseFromJSONTyped = PackagingListResponseFromJSONTyped;
42
- function PackagingListResponseToJSON(value) {
43
- if (value === undefined) {
44
- return undefined;
45
- }
46
- if (value === null) {
47
- return null;
48
- }
49
- return {
50
- 'packaging': (value.packaging.map(Packaging_1.PackagingToJSON)),
51
- 'nextPageToken': value.nextPageToken,
52
- };
53
- }
54
- exports.PackagingListResponseToJSON = PackagingListResponseToJSON;
@@ -1,3 +0,0 @@
1
- export * from './ApiError';
2
- export * from './Packaging';
3
- export * from './PackagingListResponse';
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- /* tslint:disable */
18
- /* eslint-disable */
19
- __exportStar(require("./ApiError"), exports);
20
- __exportStar(require("./Packaging"), exports);
21
- __exportStar(require("./PackagingListResponse"), exports);