@teemill/inserts 0.2.1 → 0.3.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.
- package/README.md +54 -2
- package/api.ts +193 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +184 -1
- package/dist/api.js +14 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +184 -1
- package/dist/esm/api.js +13 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ApiError.md +22 -0
- package/docs/CreateInsertRequest.md +26 -0
- package/docs/CreateInsertRequestConfig.md +20 -0
- package/docs/CreateInsertRequestConfigCoupon.md +28 -0
- package/docs/Insert.md +32 -0
- package/docs/InsertConfig.md +21 -0
- package/docs/InsertConfigCoupon.md +28 -0
- package/docs/InsertType.md +26 -0
- package/docs/InsertsApi.md +256 -0
- package/docs/InsertsTypesApi.md +132 -0
- package/docs/ListInsertTypes200Response.md +22 -0
- package/docs/ListInserts200Response.md +22 -0
- package/docs/UpdateInsertRequest.md +26 -0
- package/docs/UpdateInsertRequestConfig.md +20 -0
- package/docs/UpdateInsertRequestConfigCoupon.md +28 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/inserts@0.
|
|
1
|
+
## @teemill/inserts@0.3.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/inserts@0.
|
|
39
|
+
npm install @teemill/inserts@0.3.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,3 +44,55 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
+
|
|
48
|
+
### Documentation for API Endpoints
|
|
49
|
+
|
|
50
|
+
All URIs are relative to *https://api.localhost:8080*
|
|
51
|
+
|
|
52
|
+
Class | Method | HTTP request | Description
|
|
53
|
+
------------ | ------------- | ------------- | -------------
|
|
54
|
+
*InsertsApi* | [**createInsert**](docs/InsertsApi.md#createinsert) | **POST** /v1/inserts | Create an insert
|
|
55
|
+
*InsertsApi* | [**getInsert**](docs/InsertsApi.md#getinsert) | **GET** /v1/inserts/{insertId} | Retrieve an insert for a project
|
|
56
|
+
*InsertsApi* | [**listInserts**](docs/InsertsApi.md#listinserts) | **GET** /v1/inserts | List project inserts
|
|
57
|
+
*InsertsApi* | [**updateInsert**](docs/InsertsApi.md#updateinsert) | **PATCH** /v1/inserts/{insertId} | Update an insert
|
|
58
|
+
*InsertsTypesApi* | [**getInsertType**](docs/InsertsTypesApi.md#getinserttype) | **GET** /v1/inserts/types/{insertTypeId} | Retrieve an insert type
|
|
59
|
+
*InsertsTypesApi* | [**listInsertTypes**](docs/InsertsTypesApi.md#listinserttypes) | **GET** /v1/inserts/types | List insert types
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Documentation For Models
|
|
63
|
+
|
|
64
|
+
- [ApiError](docs/ApiError.md)
|
|
65
|
+
- [CreateInsertRequest](docs/CreateInsertRequest.md)
|
|
66
|
+
- [CreateInsertRequestConfig](docs/CreateInsertRequestConfig.md)
|
|
67
|
+
- [CreateInsertRequestConfigCoupon](docs/CreateInsertRequestConfigCoupon.md)
|
|
68
|
+
- [Insert](docs/Insert.md)
|
|
69
|
+
- [InsertConfig](docs/InsertConfig.md)
|
|
70
|
+
- [InsertConfigCoupon](docs/InsertConfigCoupon.md)
|
|
71
|
+
- [InsertType](docs/InsertType.md)
|
|
72
|
+
- [ListInsertTypes200Response](docs/ListInsertTypes200Response.md)
|
|
73
|
+
- [ListInserts200Response](docs/ListInserts200Response.md)
|
|
74
|
+
- [UpdateInsertRequest](docs/UpdateInsertRequest.md)
|
|
75
|
+
- [UpdateInsertRequestConfig](docs/UpdateInsertRequestConfig.md)
|
|
76
|
+
- [UpdateInsertRequestConfigCoupon](docs/UpdateInsertRequestConfigCoupon.md)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<a id="documentation-for-authorization"></a>
|
|
80
|
+
## Documentation For Authorization
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
Authentication schemes defined for the API:
|
|
84
|
+
<a id="api-key"></a>
|
|
85
|
+
### api-key
|
|
86
|
+
|
|
87
|
+
- **Type**: API key
|
|
88
|
+
- **API key parameter name**: Authorization
|
|
89
|
+
- **Location**: HTTP header
|
|
90
|
+
|
|
91
|
+
<a id="session-oauth"></a>
|
|
92
|
+
### session-oauth
|
|
93
|
+
|
|
94
|
+
- **Type**: OAuth
|
|
95
|
+
- **Flow**: password
|
|
96
|
+
- **Authorization URL**:
|
|
97
|
+
- **Scopes**: N/A
|
|
98
|
+
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Inserts API
|
|
5
5
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -66,7 +66,71 @@ export interface CreateInsertRequest {
|
|
|
66
66
|
* @memberof CreateInsertRequest
|
|
67
67
|
*/
|
|
68
68
|
'typeRef': string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {CreateInsertRequestConfig}
|
|
72
|
+
* @memberof CreateInsertRequest
|
|
73
|
+
*/
|
|
74
|
+
'config'?: CreateInsertRequestConfig;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @export
|
|
79
|
+
* @interface CreateInsertRequestConfig
|
|
80
|
+
*/
|
|
81
|
+
export interface CreateInsertRequestConfig {
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {CreateInsertRequestConfigCoupon}
|
|
85
|
+
* @memberof CreateInsertRequestConfig
|
|
86
|
+
*/
|
|
87
|
+
'coupon'?: CreateInsertRequestConfigCoupon;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @export
|
|
92
|
+
* @interface CreateInsertRequestConfigCoupon
|
|
93
|
+
*/
|
|
94
|
+
export interface CreateInsertRequestConfigCoupon {
|
|
95
|
+
/**
|
|
96
|
+
* The prefix of the coupon code to apply to the insert
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
99
|
+
*/
|
|
100
|
+
'prefix': string;
|
|
101
|
+
/**
|
|
102
|
+
* The type of coupon to apply to the insert
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
105
|
+
*/
|
|
106
|
+
'type': CreateInsertRequestConfigCouponTypeEnum;
|
|
107
|
+
/**
|
|
108
|
+
* The value of the coupon to apply to the insert
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
111
|
+
*/
|
|
112
|
+
'value': number;
|
|
113
|
+
/**
|
|
114
|
+
* The minimum order value to apply the coupon to
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
117
|
+
*/
|
|
118
|
+
'minimumOrderValue': number;
|
|
119
|
+
/**
|
|
120
|
+
* The description of the coupon to apply to the insert
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
123
|
+
*/
|
|
124
|
+
'description': string;
|
|
69
125
|
}
|
|
126
|
+
|
|
127
|
+
export const CreateInsertRequestConfigCouponTypeEnum = {
|
|
128
|
+
Percentage: 'percentage',
|
|
129
|
+
Fixed: 'fixed'
|
|
130
|
+
} as const;
|
|
131
|
+
|
|
132
|
+
export type CreateInsertRequestConfigCouponTypeEnum = typeof CreateInsertRequestConfigCouponTypeEnum[keyof typeof CreateInsertRequestConfigCouponTypeEnum];
|
|
133
|
+
|
|
70
134
|
/**
|
|
71
135
|
*
|
|
72
136
|
* @export
|
|
@@ -97,6 +161,12 @@ export interface Insert {
|
|
|
97
161
|
* @memberof Insert
|
|
98
162
|
*/
|
|
99
163
|
'typeRef': string;
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type {InsertConfig}
|
|
167
|
+
* @memberof Insert
|
|
168
|
+
*/
|
|
169
|
+
'config': InsertConfig | null;
|
|
100
170
|
/**
|
|
101
171
|
* ISO 8601 Timestamp
|
|
102
172
|
* @type {string}
|
|
@@ -110,6 +180,64 @@ export interface Insert {
|
|
|
110
180
|
*/
|
|
111
181
|
'updatedAt': string | null;
|
|
112
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* The configuration of the insert
|
|
185
|
+
* @export
|
|
186
|
+
* @interface InsertConfig
|
|
187
|
+
*/
|
|
188
|
+
export interface InsertConfig {
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @type {InsertConfigCoupon}
|
|
192
|
+
* @memberof InsertConfig
|
|
193
|
+
*/
|
|
194
|
+
'coupon'?: InsertConfigCoupon | null;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @export
|
|
199
|
+
* @interface InsertConfigCoupon
|
|
200
|
+
*/
|
|
201
|
+
export interface InsertConfigCoupon {
|
|
202
|
+
/**
|
|
203
|
+
* The prefix of the coupon code to apply to the insert
|
|
204
|
+
* @type {string}
|
|
205
|
+
* @memberof InsertConfigCoupon
|
|
206
|
+
*/
|
|
207
|
+
'prefix': string;
|
|
208
|
+
/**
|
|
209
|
+
* The type of coupon to apply to the insert
|
|
210
|
+
* @type {string}
|
|
211
|
+
* @memberof InsertConfigCoupon
|
|
212
|
+
*/
|
|
213
|
+
'type': InsertConfigCouponTypeEnum;
|
|
214
|
+
/**
|
|
215
|
+
* The value of the coupon to apply to the insert
|
|
216
|
+
* @type {number}
|
|
217
|
+
* @memberof InsertConfigCoupon
|
|
218
|
+
*/
|
|
219
|
+
'value': number;
|
|
220
|
+
/**
|
|
221
|
+
* The minimum order value to apply the coupon to
|
|
222
|
+
* @type {number}
|
|
223
|
+
* @memberof InsertConfigCoupon
|
|
224
|
+
*/
|
|
225
|
+
'minimumOrderValue': number;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {string}
|
|
229
|
+
* @memberof InsertConfigCoupon
|
|
230
|
+
*/
|
|
231
|
+
'description': string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export const InsertConfigCouponTypeEnum = {
|
|
235
|
+
Percentage: 'percentage',
|
|
236
|
+
Fixed: 'fixed'
|
|
237
|
+
} as const;
|
|
238
|
+
|
|
239
|
+
export type InsertConfigCouponTypeEnum = typeof InsertConfigCouponTypeEnum[keyof typeof InsertConfigCouponTypeEnum];
|
|
240
|
+
|
|
113
241
|
/**
|
|
114
242
|
*
|
|
115
243
|
* @export
|
|
@@ -203,7 +331,71 @@ export interface UpdateInsertRequest {
|
|
|
203
331
|
* @memberof UpdateInsertRequest
|
|
204
332
|
*/
|
|
205
333
|
'typeRef'?: string;
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
* @type {UpdateInsertRequestConfig}
|
|
337
|
+
* @memberof UpdateInsertRequest
|
|
338
|
+
*/
|
|
339
|
+
'config'?: UpdateInsertRequestConfig | null;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
* @export
|
|
344
|
+
* @interface UpdateInsertRequestConfig
|
|
345
|
+
*/
|
|
346
|
+
export interface UpdateInsertRequestConfig {
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @type {UpdateInsertRequestConfigCoupon}
|
|
350
|
+
* @memberof UpdateInsertRequestConfig
|
|
351
|
+
*/
|
|
352
|
+
'coupon'?: UpdateInsertRequestConfigCoupon;
|
|
206
353
|
}
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @export
|
|
357
|
+
* @interface UpdateInsertRequestConfigCoupon
|
|
358
|
+
*/
|
|
359
|
+
export interface UpdateInsertRequestConfigCoupon {
|
|
360
|
+
/**
|
|
361
|
+
* The prefix of the coupon code to apply to the insert
|
|
362
|
+
* @type {string}
|
|
363
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
364
|
+
*/
|
|
365
|
+
'prefix': string;
|
|
366
|
+
/**
|
|
367
|
+
* The type of coupon to apply to the insert
|
|
368
|
+
* @type {string}
|
|
369
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
370
|
+
*/
|
|
371
|
+
'type': UpdateInsertRequestConfigCouponTypeEnum;
|
|
372
|
+
/**
|
|
373
|
+
* The value of the coupon to apply to the insert
|
|
374
|
+
* @type {number}
|
|
375
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
376
|
+
*/
|
|
377
|
+
'value': number;
|
|
378
|
+
/**
|
|
379
|
+
* The minimum order value to apply the coupon to
|
|
380
|
+
* @type {number}
|
|
381
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
382
|
+
*/
|
|
383
|
+
'minimumOrderValue': number;
|
|
384
|
+
/**
|
|
385
|
+
* The description of the coupon to apply to the insert
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
388
|
+
*/
|
|
389
|
+
'description': string;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export const UpdateInsertRequestConfigCouponTypeEnum = {
|
|
393
|
+
Percentage: 'percentage',
|
|
394
|
+
Fixed: 'fixed'
|
|
395
|
+
} as const;
|
|
396
|
+
|
|
397
|
+
export type UpdateInsertRequestConfigCouponTypeEnum = typeof UpdateInsertRequestConfigCouponTypeEnum[keyof typeof UpdateInsertRequestConfigCouponTypeEnum];
|
|
398
|
+
|
|
207
399
|
|
|
208
400
|
/**
|
|
209
401
|
* InsertsApi - axios parameter creator
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Inserts API
|
|
5
5
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Inserts API
|
|
5
5
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Inserts API
|
|
5
5
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -56,7 +56,68 @@ export interface CreateInsertRequest {
|
|
|
56
56
|
* @memberof CreateInsertRequest
|
|
57
57
|
*/
|
|
58
58
|
'typeRef': string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {CreateInsertRequestConfig}
|
|
62
|
+
* @memberof CreateInsertRequest
|
|
63
|
+
*/
|
|
64
|
+
'config'?: CreateInsertRequestConfig;
|
|
59
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @export
|
|
69
|
+
* @interface CreateInsertRequestConfig
|
|
70
|
+
*/
|
|
71
|
+
export interface CreateInsertRequestConfig {
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {CreateInsertRequestConfigCoupon}
|
|
75
|
+
* @memberof CreateInsertRequestConfig
|
|
76
|
+
*/
|
|
77
|
+
'coupon'?: CreateInsertRequestConfigCoupon;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @export
|
|
82
|
+
* @interface CreateInsertRequestConfigCoupon
|
|
83
|
+
*/
|
|
84
|
+
export interface CreateInsertRequestConfigCoupon {
|
|
85
|
+
/**
|
|
86
|
+
* The prefix of the coupon code to apply to the insert
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
89
|
+
*/
|
|
90
|
+
'prefix': string;
|
|
91
|
+
/**
|
|
92
|
+
* The type of coupon to apply to the insert
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
95
|
+
*/
|
|
96
|
+
'type': CreateInsertRequestConfigCouponTypeEnum;
|
|
97
|
+
/**
|
|
98
|
+
* The value of the coupon to apply to the insert
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
101
|
+
*/
|
|
102
|
+
'value': number;
|
|
103
|
+
/**
|
|
104
|
+
* The minimum order value to apply the coupon to
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
107
|
+
*/
|
|
108
|
+
'minimumOrderValue': number;
|
|
109
|
+
/**
|
|
110
|
+
* The description of the coupon to apply to the insert
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof CreateInsertRequestConfigCoupon
|
|
113
|
+
*/
|
|
114
|
+
'description': string;
|
|
115
|
+
}
|
|
116
|
+
export declare const CreateInsertRequestConfigCouponTypeEnum: {
|
|
117
|
+
readonly Percentage: "percentage";
|
|
118
|
+
readonly Fixed: "fixed";
|
|
119
|
+
};
|
|
120
|
+
export type CreateInsertRequestConfigCouponTypeEnum = typeof CreateInsertRequestConfigCouponTypeEnum[keyof typeof CreateInsertRequestConfigCouponTypeEnum];
|
|
60
121
|
/**
|
|
61
122
|
*
|
|
62
123
|
* @export
|
|
@@ -87,6 +148,12 @@ export interface Insert {
|
|
|
87
148
|
* @memberof Insert
|
|
88
149
|
*/
|
|
89
150
|
'typeRef': string;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {InsertConfig}
|
|
154
|
+
* @memberof Insert
|
|
155
|
+
*/
|
|
156
|
+
'config': InsertConfig | null;
|
|
90
157
|
/**
|
|
91
158
|
* ISO 8601 Timestamp
|
|
92
159
|
* @type {string}
|
|
@@ -100,6 +167,61 @@ export interface Insert {
|
|
|
100
167
|
*/
|
|
101
168
|
'updatedAt': string | null;
|
|
102
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* The configuration of the insert
|
|
172
|
+
* @export
|
|
173
|
+
* @interface InsertConfig
|
|
174
|
+
*/
|
|
175
|
+
export interface InsertConfig {
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @type {InsertConfigCoupon}
|
|
179
|
+
* @memberof InsertConfig
|
|
180
|
+
*/
|
|
181
|
+
'coupon'?: InsertConfigCoupon | null;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @export
|
|
186
|
+
* @interface InsertConfigCoupon
|
|
187
|
+
*/
|
|
188
|
+
export interface InsertConfigCoupon {
|
|
189
|
+
/**
|
|
190
|
+
* The prefix of the coupon code to apply to the insert
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof InsertConfigCoupon
|
|
193
|
+
*/
|
|
194
|
+
'prefix': string;
|
|
195
|
+
/**
|
|
196
|
+
* The type of coupon to apply to the insert
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof InsertConfigCoupon
|
|
199
|
+
*/
|
|
200
|
+
'type': InsertConfigCouponTypeEnum;
|
|
201
|
+
/**
|
|
202
|
+
* The value of the coupon to apply to the insert
|
|
203
|
+
* @type {number}
|
|
204
|
+
* @memberof InsertConfigCoupon
|
|
205
|
+
*/
|
|
206
|
+
'value': number;
|
|
207
|
+
/**
|
|
208
|
+
* The minimum order value to apply the coupon to
|
|
209
|
+
* @type {number}
|
|
210
|
+
* @memberof InsertConfigCoupon
|
|
211
|
+
*/
|
|
212
|
+
'minimumOrderValue': number;
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @type {string}
|
|
216
|
+
* @memberof InsertConfigCoupon
|
|
217
|
+
*/
|
|
218
|
+
'description': string;
|
|
219
|
+
}
|
|
220
|
+
export declare const InsertConfigCouponTypeEnum: {
|
|
221
|
+
readonly Percentage: "percentage";
|
|
222
|
+
readonly Fixed: "fixed";
|
|
223
|
+
};
|
|
224
|
+
export type InsertConfigCouponTypeEnum = typeof InsertConfigCouponTypeEnum[keyof typeof InsertConfigCouponTypeEnum];
|
|
103
225
|
/**
|
|
104
226
|
*
|
|
105
227
|
* @export
|
|
@@ -193,7 +315,68 @@ export interface UpdateInsertRequest {
|
|
|
193
315
|
* @memberof UpdateInsertRequest
|
|
194
316
|
*/
|
|
195
317
|
'typeRef'?: string;
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @type {UpdateInsertRequestConfig}
|
|
321
|
+
* @memberof UpdateInsertRequest
|
|
322
|
+
*/
|
|
323
|
+
'config'?: UpdateInsertRequestConfig | null;
|
|
196
324
|
}
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @export
|
|
328
|
+
* @interface UpdateInsertRequestConfig
|
|
329
|
+
*/
|
|
330
|
+
export interface UpdateInsertRequestConfig {
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @type {UpdateInsertRequestConfigCoupon}
|
|
334
|
+
* @memberof UpdateInsertRequestConfig
|
|
335
|
+
*/
|
|
336
|
+
'coupon'?: UpdateInsertRequestConfigCoupon;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @export
|
|
341
|
+
* @interface UpdateInsertRequestConfigCoupon
|
|
342
|
+
*/
|
|
343
|
+
export interface UpdateInsertRequestConfigCoupon {
|
|
344
|
+
/**
|
|
345
|
+
* The prefix of the coupon code to apply to the insert
|
|
346
|
+
* @type {string}
|
|
347
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
348
|
+
*/
|
|
349
|
+
'prefix': string;
|
|
350
|
+
/**
|
|
351
|
+
* The type of coupon to apply to the insert
|
|
352
|
+
* @type {string}
|
|
353
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
354
|
+
*/
|
|
355
|
+
'type': UpdateInsertRequestConfigCouponTypeEnum;
|
|
356
|
+
/**
|
|
357
|
+
* The value of the coupon to apply to the insert
|
|
358
|
+
* @type {number}
|
|
359
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
360
|
+
*/
|
|
361
|
+
'value': number;
|
|
362
|
+
/**
|
|
363
|
+
* The minimum order value to apply the coupon to
|
|
364
|
+
* @type {number}
|
|
365
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
366
|
+
*/
|
|
367
|
+
'minimumOrderValue': number;
|
|
368
|
+
/**
|
|
369
|
+
* The description of the coupon to apply to the insert
|
|
370
|
+
* @type {string}
|
|
371
|
+
* @memberof UpdateInsertRequestConfigCoupon
|
|
372
|
+
*/
|
|
373
|
+
'description': string;
|
|
374
|
+
}
|
|
375
|
+
export declare const UpdateInsertRequestConfigCouponTypeEnum: {
|
|
376
|
+
readonly Percentage: "percentage";
|
|
377
|
+
readonly Fixed: "fixed";
|
|
378
|
+
};
|
|
379
|
+
export type UpdateInsertRequestConfigCouponTypeEnum = typeof UpdateInsertRequestConfigCouponTypeEnum[keyof typeof UpdateInsertRequestConfigCouponTypeEnum];
|
|
197
380
|
/**
|
|
198
381
|
* InsertsApi - axios parameter creator
|
|
199
382
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Inserts API
|
|
6
6
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,13 +22,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.InsertsTypesApi = exports.InsertsTypesApiFactory = exports.InsertsTypesApiFp = exports.InsertsTypesApiAxiosParamCreator = exports.InsertsApi = exports.InsertsApiFactory = exports.InsertsApiFp = exports.InsertsApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.InsertsTypesApi = exports.InsertsTypesApiFactory = exports.InsertsTypesApiFp = exports.InsertsTypesApiAxiosParamCreator = exports.InsertsApi = exports.InsertsApiFactory = exports.InsertsApiFp = exports.InsertsApiAxiosParamCreator = exports.UpdateInsertRequestConfigCouponTypeEnum = exports.InsertConfigCouponTypeEnum = exports.CreateInsertRequestConfigCouponTypeEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
+
exports.CreateInsertRequestConfigCouponTypeEnum = {
|
|
33
|
+
Percentage: 'percentage',
|
|
34
|
+
Fixed: 'fixed'
|
|
35
|
+
};
|
|
36
|
+
exports.InsertConfigCouponTypeEnum = {
|
|
37
|
+
Percentage: 'percentage',
|
|
38
|
+
Fixed: 'fixed'
|
|
39
|
+
};
|
|
40
|
+
exports.UpdateInsertRequestConfigCouponTypeEnum = {
|
|
41
|
+
Percentage: 'percentage',
|
|
42
|
+
Fixed: 'fixed'
|
|
43
|
+
};
|
|
32
44
|
/**
|
|
33
45
|
* InsertsApi - axios parameter creator
|
|
34
46
|
* @export
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Inserts API
|
|
6
6
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Inserts API
|
|
6
6
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Inserts API
|
|
6
6
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|