@deliverart/sdk-js-email-notification-configuration 2.8.9 → 2.8.10
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 +40 -14
- package/dist/index.cjs +160 -38
- package/dist/index.d.cts +1014 -400
- package/dist/index.d.ts +1014 -400
- package/dist/index.js +160 -38
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -11158,63 +11158,185 @@ function date4(params) {
|
|
|
11158
11158
|
config(en_default());
|
|
11159
11159
|
|
|
11160
11160
|
// src/models.ts
|
|
11161
|
-
var
|
|
11161
|
+
var emailNotificationConfigurationConfigSchema = external_exports.object({
|
|
11162
11162
|
sourcesEnabled: external_exports.array(orderSourceSchema)
|
|
11163
11163
|
});
|
|
11164
|
-
var
|
|
11164
|
+
var emailNotificationConfigurationSchema = external_exports.discriminatedUnion("templateKey", [
|
|
11165
11165
|
external_exports.object({
|
|
11166
|
+
id: external_exports.string(),
|
|
11167
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11166
11168
|
templateKey: external_exports.literal("delivery_started"),
|
|
11167
|
-
|
|
11169
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11170
|
+
isActive: external_exports.boolean(),
|
|
11171
|
+
createdAt: datetimeSchema,
|
|
11172
|
+
updatedAt: datetimeSchema
|
|
11168
11173
|
}),
|
|
11169
11174
|
external_exports.object({
|
|
11175
|
+
id: external_exports.string(),
|
|
11176
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11170
11177
|
templateKey: external_exports.literal("delivery_taken_over"),
|
|
11171
|
-
|
|
11178
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11179
|
+
isActive: external_exports.boolean(),
|
|
11180
|
+
createdAt: datetimeSchema,
|
|
11181
|
+
updatedAt: datetimeSchema
|
|
11172
11182
|
}),
|
|
11173
11183
|
external_exports.object({
|
|
11184
|
+
id: external_exports.string(),
|
|
11185
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11174
11186
|
templateKey: external_exports.literal("order_created"),
|
|
11175
|
-
|
|
11187
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11188
|
+
isActive: external_exports.boolean(),
|
|
11189
|
+
createdAt: datetimeSchema,
|
|
11190
|
+
updatedAt: datetimeSchema
|
|
11176
11191
|
}),
|
|
11177
11192
|
external_exports.object({
|
|
11193
|
+
id: external_exports.string(),
|
|
11194
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11178
11195
|
templateKey: external_exports.literal("order_delivered"),
|
|
11179
|
-
|
|
11196
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11197
|
+
isActive: external_exports.boolean(),
|
|
11198
|
+
createdAt: datetimeSchema,
|
|
11199
|
+
updatedAt: datetimeSchema
|
|
11180
11200
|
}),
|
|
11181
11201
|
external_exports.object({
|
|
11202
|
+
id: external_exports.string(),
|
|
11203
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11182
11204
|
templateKey: external_exports.literal("order_in_preparation"),
|
|
11183
|
-
|
|
11205
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11206
|
+
isActive: external_exports.boolean(),
|
|
11207
|
+
createdAt: datetimeSchema,
|
|
11208
|
+
updatedAt: datetimeSchema
|
|
11184
11209
|
}),
|
|
11185
11210
|
external_exports.object({
|
|
11211
|
+
id: external_exports.string(),
|
|
11212
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11186
11213
|
templateKey: external_exports.literal("order_preparation_done"),
|
|
11187
|
-
|
|
11214
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11215
|
+
isActive: external_exports.boolean(),
|
|
11216
|
+
createdAt: datetimeSchema,
|
|
11217
|
+
updatedAt: datetimeSchema
|
|
11218
|
+
})
|
|
11219
|
+
]);
|
|
11220
|
+
var emailNotificationConfigurationSchemaListItem = external_exports.discriminatedUnion("templateKey", [
|
|
11221
|
+
external_exports.object({
|
|
11222
|
+
id: external_exports.string(),
|
|
11223
|
+
templateKey: external_exports.literal("delivery_started"),
|
|
11224
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11225
|
+
isActive: external_exports.boolean(),
|
|
11226
|
+
createdAt: datetimeSchema,
|
|
11227
|
+
updatedAt: datetimeSchema
|
|
11228
|
+
}),
|
|
11229
|
+
external_exports.object({
|
|
11230
|
+
id: external_exports.string(),
|
|
11231
|
+
templateKey: external_exports.literal("delivery_taken_over"),
|
|
11232
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11233
|
+
isActive: external_exports.boolean(),
|
|
11234
|
+
createdAt: datetimeSchema,
|
|
11235
|
+
updatedAt: datetimeSchema
|
|
11236
|
+
}),
|
|
11237
|
+
external_exports.object({
|
|
11238
|
+
id: external_exports.string(),
|
|
11239
|
+
templateKey: external_exports.literal("order_created"),
|
|
11240
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11241
|
+
isActive: external_exports.boolean(),
|
|
11242
|
+
createdAt: datetimeSchema,
|
|
11243
|
+
updatedAt: datetimeSchema
|
|
11244
|
+
}),
|
|
11245
|
+
external_exports.object({
|
|
11246
|
+
id: external_exports.string(),
|
|
11247
|
+
templateKey: external_exports.literal("order_delivered"),
|
|
11248
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11249
|
+
isActive: external_exports.boolean(),
|
|
11250
|
+
createdAt: datetimeSchema,
|
|
11251
|
+
updatedAt: datetimeSchema
|
|
11252
|
+
}),
|
|
11253
|
+
external_exports.object({
|
|
11254
|
+
id: external_exports.string(),
|
|
11255
|
+
templateKey: external_exports.literal("order_in_preparation"),
|
|
11256
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11257
|
+
isActive: external_exports.boolean(),
|
|
11258
|
+
createdAt: datetimeSchema,
|
|
11259
|
+
updatedAt: datetimeSchema
|
|
11260
|
+
}),
|
|
11261
|
+
external_exports.object({
|
|
11262
|
+
id: external_exports.string(),
|
|
11263
|
+
templateKey: external_exports.literal("order_preparation_done"),
|
|
11264
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11265
|
+
isActive: external_exports.boolean(),
|
|
11266
|
+
createdAt: datetimeSchema,
|
|
11267
|
+
updatedAt: datetimeSchema
|
|
11268
|
+
})
|
|
11269
|
+
]);
|
|
11270
|
+
var writableEmailNotificationConfigurationSchema = external_exports.union([
|
|
11271
|
+
external_exports.object({
|
|
11272
|
+
templateKey: external_exports.literal("delivery_started"),
|
|
11273
|
+
config: emailNotificationConfigurationConfigSchema.optional(),
|
|
11274
|
+
isActive: external_exports.boolean().optional()
|
|
11275
|
+
}),
|
|
11276
|
+
external_exports.object({
|
|
11277
|
+
templateKey: external_exports.literal("delivery_taken_over"),
|
|
11278
|
+
config: emailNotificationConfigurationConfigSchema.optional(),
|
|
11279
|
+
isActive: external_exports.boolean().optional()
|
|
11280
|
+
}),
|
|
11281
|
+
external_exports.object({
|
|
11282
|
+
templateKey: external_exports.literal("order_created"),
|
|
11283
|
+
config: emailNotificationConfigurationConfigSchema.optional(),
|
|
11284
|
+
isActive: external_exports.boolean().optional()
|
|
11285
|
+
}),
|
|
11286
|
+
external_exports.object({
|
|
11287
|
+
templateKey: external_exports.literal("order_delivered"),
|
|
11288
|
+
config: emailNotificationConfigurationConfigSchema.optional(),
|
|
11289
|
+
isActive: external_exports.boolean().optional()
|
|
11290
|
+
}),
|
|
11291
|
+
external_exports.object({
|
|
11292
|
+
templateKey: external_exports.literal("order_in_preparation"),
|
|
11293
|
+
config: emailNotificationConfigurationConfigSchema.optional(),
|
|
11294
|
+
isActive: external_exports.boolean().optional()
|
|
11295
|
+
}),
|
|
11296
|
+
external_exports.object({
|
|
11297
|
+
templateKey: external_exports.literal("order_preparation_done"),
|
|
11298
|
+
config: emailNotificationConfigurationConfigSchema.optional(),
|
|
11299
|
+
isActive: external_exports.boolean().optional()
|
|
11300
|
+
})
|
|
11301
|
+
]);
|
|
11302
|
+
var writableCreateEmailNotificationConfigurationSchema = external_exports.union([
|
|
11303
|
+
external_exports.object({
|
|
11304
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11305
|
+
templateKey: external_exports.literal("delivery_started"),
|
|
11306
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11307
|
+
isActive: external_exports.boolean()
|
|
11308
|
+
}),
|
|
11309
|
+
external_exports.object({
|
|
11310
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11311
|
+
templateKey: external_exports.literal("delivery_taken_over"),
|
|
11312
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11313
|
+
isActive: external_exports.boolean()
|
|
11314
|
+
}),
|
|
11315
|
+
external_exports.object({
|
|
11316
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11317
|
+
templateKey: external_exports.literal("order_created"),
|
|
11318
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11319
|
+
isActive: external_exports.boolean()
|
|
11320
|
+
}),
|
|
11321
|
+
external_exports.object({
|
|
11322
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11323
|
+
templateKey: external_exports.literal("order_delivered"),
|
|
11324
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11325
|
+
isActive: external_exports.boolean()
|
|
11326
|
+
}),
|
|
11327
|
+
external_exports.object({
|
|
11328
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11329
|
+
templateKey: external_exports.literal("order_in_preparation"),
|
|
11330
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11331
|
+
isActive: external_exports.boolean()
|
|
11332
|
+
}),
|
|
11333
|
+
external_exports.object({
|
|
11334
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
11335
|
+
templateKey: external_exports.literal("order_preparation_done"),
|
|
11336
|
+
config: emailNotificationConfigurationConfigSchema,
|
|
11337
|
+
isActive: external_exports.boolean()
|
|
11188
11338
|
})
|
|
11189
11339
|
]);
|
|
11190
|
-
var emailNotificationConfigurationSchema = external_exports.object({
|
|
11191
|
-
id: external_exports.string(),
|
|
11192
|
-
pointOfSale: pointOfSaleIriSchema,
|
|
11193
|
-
templateKey: emailTemplateKeySchema,
|
|
11194
|
-
config: emailNotificationConfigurationConfigSchema,
|
|
11195
|
-
isActive: external_exports.boolean(),
|
|
11196
|
-
createdAt: datetimeSchema,
|
|
11197
|
-
updatedAt: datetimeSchema
|
|
11198
|
-
});
|
|
11199
|
-
var emailNotificationConfigurationSchemaListItem = external_exports.object({
|
|
11200
|
-
id: external_exports.string(),
|
|
11201
|
-
templateKey: emailTemplateKeySchema,
|
|
11202
|
-
config: emailNotificationConfigurationConfigSchema,
|
|
11203
|
-
isActive: external_exports.boolean(),
|
|
11204
|
-
createdAt: datetimeSchema,
|
|
11205
|
-
updatedAt: datetimeSchema
|
|
11206
|
-
});
|
|
11207
|
-
var writableEmailNotificationConfigBaseSchema = external_exports.object({
|
|
11208
|
-
config: baseConfigSchema,
|
|
11209
|
-
isActive: external_exports.boolean()
|
|
11210
|
-
});
|
|
11211
|
-
var writableEmailNotificationConfigurationSchema = writableEmailNotificationConfigBaseSchema;
|
|
11212
|
-
var writableCreateEmailNotificationConfigurationSchema = external_exports.object({
|
|
11213
|
-
pointOfSale: pointOfSaleIriSchema,
|
|
11214
|
-
templateKey: emailTemplateKeySchema,
|
|
11215
|
-
config: baseConfigSchema,
|
|
11216
|
-
isActive: external_exports.boolean()
|
|
11217
|
-
});
|
|
11218
11340
|
var emailNotificationConfigurationsQuerySchema = external_exports.object({
|
|
11219
11341
|
id: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
11220
11342
|
templateKey: external_exports.union([emailTemplateKeySchema, external_exports.array(emailTemplateKeySchema)]).optional(),
|
|
@@ -11225,7 +11347,7 @@ var emailNotificationConfigurationsQuerySchema = external_exports.object({
|
|
|
11225
11347
|
|
|
11226
11348
|
// src/requests/CreateEmailNotificationConfiguration.ts
|
|
11227
11349
|
import { AbstractApiRequest } from "@deliverart/sdk-js-core";
|
|
11228
|
-
var createEmailNotificationConfigurationInputSchema = writableCreateEmailNotificationConfigurationSchema
|
|
11350
|
+
var createEmailNotificationConfigurationInputSchema = writableCreateEmailNotificationConfigurationSchema;
|
|
11229
11351
|
var createEmailNotificationConfigurationResponseSchema = emailNotificationConfigurationSchema;
|
|
11230
11352
|
var CreateEmailNotificationConfiguration = class extends AbstractApiRequest {
|
|
11231
11353
|
constructor(input) {
|
|
@@ -11340,7 +11462,7 @@ var GetEmailNotificationConfigurationsFromPointOfSale = class extends AbstractAp
|
|
|
11340
11462
|
|
|
11341
11463
|
// src/requests/UpdateEmailNotificationConfiguration.ts
|
|
11342
11464
|
import { AbstractApiRequest as AbstractApiRequest6 } from "@deliverart/sdk-js-core";
|
|
11343
|
-
var updateEmailNotificationConfigurationInputSchema = writableEmailNotificationConfigurationSchema
|
|
11465
|
+
var updateEmailNotificationConfigurationInputSchema = writableEmailNotificationConfigurationSchema;
|
|
11344
11466
|
var updateEmailNotificationConfigurationResponseSchema = emailNotificationConfigurationSchema;
|
|
11345
11467
|
var UpdateEmailNotificationConfiguration = class extends AbstractApiRequest6 {
|
|
11346
11468
|
constructor(emailNotificationConfigurationId, input) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-email-notification-configuration",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Email Notification Configuration",
|
|
4
|
-
"version": "2.8.
|
|
4
|
+
"version": "2.8.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.8.
|
|
22
|
-
"@deliverart/sdk-js-global-types": "2.8.
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.8.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.8.10",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.8.10",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.8.10"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|