@deliverart/sdk-js-email-notification-configuration 2.13.1 → 2.13.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.
- package/README.md +27 -4
- package/dist/index.cjs +118 -25
- package/dist/index.d.cts +444 -2
- package/dist/index.d.ts +444 -2
- package/dist/index.js +116 -25
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -13783,15 +13783,20 @@ function date4(params) {
|
|
|
13783
13783
|
config(en_default());
|
|
13784
13784
|
|
|
13785
13785
|
// src/models.ts
|
|
13786
|
-
var
|
|
13786
|
+
var orderEmailNotificationConfigurationConfigSchema = external_exports.object({
|
|
13787
13787
|
sourcesEnabled: external_exports.array(orderSourceSchema)
|
|
13788
13788
|
});
|
|
13789
|
+
var emptyEmailNotificationConfigurationConfigSchema = external_exports.object({});
|
|
13790
|
+
var emailNotificationConfigurationConfigSchema = external_exports.union([
|
|
13791
|
+
orderEmailNotificationConfigurationConfigSchema,
|
|
13792
|
+
emptyEmailNotificationConfigurationConfigSchema
|
|
13793
|
+
]);
|
|
13789
13794
|
var emailNotificationConfigurationSchema = external_exports.discriminatedUnion("templateKey", [
|
|
13790
13795
|
external_exports.object({
|
|
13791
13796
|
id: external_exports.string(),
|
|
13792
13797
|
pointOfSale: pointOfSaleIriSchema,
|
|
13793
13798
|
templateKey: external_exports.literal("delivery_started"),
|
|
13794
|
-
config:
|
|
13799
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13795
13800
|
isActive: external_exports.boolean(),
|
|
13796
13801
|
createdAt: datetimeSchema,
|
|
13797
13802
|
updatedAt: datetimeSchema
|
|
@@ -13800,7 +13805,7 @@ var emailNotificationConfigurationSchema = external_exports.discriminatedUnion("
|
|
|
13800
13805
|
id: external_exports.string(),
|
|
13801
13806
|
pointOfSale: pointOfSaleIriSchema,
|
|
13802
13807
|
templateKey: external_exports.literal("delivery_taken_over"),
|
|
13803
|
-
config:
|
|
13808
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13804
13809
|
isActive: external_exports.boolean(),
|
|
13805
13810
|
createdAt: datetimeSchema,
|
|
13806
13811
|
updatedAt: datetimeSchema
|
|
@@ -13809,7 +13814,7 @@ var emailNotificationConfigurationSchema = external_exports.discriminatedUnion("
|
|
|
13809
13814
|
id: external_exports.string(),
|
|
13810
13815
|
pointOfSale: pointOfSaleIriSchema,
|
|
13811
13816
|
templateKey: external_exports.literal("order_created"),
|
|
13812
|
-
config:
|
|
13817
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13813
13818
|
isActive: external_exports.boolean(),
|
|
13814
13819
|
createdAt: datetimeSchema,
|
|
13815
13820
|
updatedAt: datetimeSchema
|
|
@@ -13818,7 +13823,7 @@ var emailNotificationConfigurationSchema = external_exports.discriminatedUnion("
|
|
|
13818
13823
|
id: external_exports.string(),
|
|
13819
13824
|
pointOfSale: pointOfSaleIriSchema,
|
|
13820
13825
|
templateKey: external_exports.literal("order_delivered"),
|
|
13821
|
-
config:
|
|
13826
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13822
13827
|
isActive: external_exports.boolean(),
|
|
13823
13828
|
createdAt: datetimeSchema,
|
|
13824
13829
|
updatedAt: datetimeSchema
|
|
@@ -13827,7 +13832,7 @@ var emailNotificationConfigurationSchema = external_exports.discriminatedUnion("
|
|
|
13827
13832
|
id: external_exports.string(),
|
|
13828
13833
|
pointOfSale: pointOfSaleIriSchema,
|
|
13829
13834
|
templateKey: external_exports.literal("order_in_preparation"),
|
|
13830
|
-
config:
|
|
13835
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13831
13836
|
isActive: external_exports.boolean(),
|
|
13832
13837
|
createdAt: datetimeSchema,
|
|
13833
13838
|
updatedAt: datetimeSchema
|
|
@@ -13836,7 +13841,34 @@ var emailNotificationConfigurationSchema = external_exports.discriminatedUnion("
|
|
|
13836
13841
|
id: external_exports.string(),
|
|
13837
13842
|
pointOfSale: pointOfSaleIriSchema,
|
|
13838
13843
|
templateKey: external_exports.literal("order_preparation_done"),
|
|
13839
|
-
config:
|
|
13844
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13845
|
+
isActive: external_exports.boolean(),
|
|
13846
|
+
createdAt: datetimeSchema,
|
|
13847
|
+
updatedAt: datetimeSchema
|
|
13848
|
+
}),
|
|
13849
|
+
external_exports.object({
|
|
13850
|
+
id: external_exports.string(),
|
|
13851
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
13852
|
+
templateKey: external_exports.literal("subscription_expiring"),
|
|
13853
|
+
config: emptyEmailNotificationConfigurationConfigSchema,
|
|
13854
|
+
isActive: external_exports.boolean(),
|
|
13855
|
+
createdAt: datetimeSchema,
|
|
13856
|
+
updatedAt: datetimeSchema
|
|
13857
|
+
}),
|
|
13858
|
+
external_exports.object({
|
|
13859
|
+
id: external_exports.string(),
|
|
13860
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
13861
|
+
templateKey: external_exports.literal("subscription_low_credits"),
|
|
13862
|
+
config: emptyEmailNotificationConfigurationConfigSchema,
|
|
13863
|
+
isActive: external_exports.boolean(),
|
|
13864
|
+
createdAt: datetimeSchema,
|
|
13865
|
+
updatedAt: datetimeSchema
|
|
13866
|
+
}),
|
|
13867
|
+
external_exports.object({
|
|
13868
|
+
id: external_exports.string(),
|
|
13869
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
13870
|
+
templateKey: external_exports.literal("subscription_pending_renewal"),
|
|
13871
|
+
config: emptyEmailNotificationConfigurationConfigSchema,
|
|
13840
13872
|
isActive: external_exports.boolean(),
|
|
13841
13873
|
createdAt: datetimeSchema,
|
|
13842
13874
|
updatedAt: datetimeSchema
|
|
@@ -13846,7 +13878,7 @@ var emailNotificationConfigurationSchemaListItem = external_exports.discriminate
|
|
|
13846
13878
|
external_exports.object({
|
|
13847
13879
|
id: external_exports.string(),
|
|
13848
13880
|
templateKey: external_exports.literal("delivery_started"),
|
|
13849
|
-
config:
|
|
13881
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13850
13882
|
isActive: external_exports.boolean(),
|
|
13851
13883
|
createdAt: datetimeSchema,
|
|
13852
13884
|
updatedAt: datetimeSchema
|
|
@@ -13854,7 +13886,7 @@ var emailNotificationConfigurationSchemaListItem = external_exports.discriminate
|
|
|
13854
13886
|
external_exports.object({
|
|
13855
13887
|
id: external_exports.string(),
|
|
13856
13888
|
templateKey: external_exports.literal("delivery_taken_over"),
|
|
13857
|
-
config:
|
|
13889
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13858
13890
|
isActive: external_exports.boolean(),
|
|
13859
13891
|
createdAt: datetimeSchema,
|
|
13860
13892
|
updatedAt: datetimeSchema
|
|
@@ -13862,7 +13894,7 @@ var emailNotificationConfigurationSchemaListItem = external_exports.discriminate
|
|
|
13862
13894
|
external_exports.object({
|
|
13863
13895
|
id: external_exports.string(),
|
|
13864
13896
|
templateKey: external_exports.literal("order_created"),
|
|
13865
|
-
config:
|
|
13897
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13866
13898
|
isActive: external_exports.boolean(),
|
|
13867
13899
|
createdAt: datetimeSchema,
|
|
13868
13900
|
updatedAt: datetimeSchema
|
|
@@ -13870,7 +13902,7 @@ var emailNotificationConfigurationSchemaListItem = external_exports.discriminate
|
|
|
13870
13902
|
external_exports.object({
|
|
13871
13903
|
id: external_exports.string(),
|
|
13872
13904
|
templateKey: external_exports.literal("order_delivered"),
|
|
13873
|
-
config:
|
|
13905
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13874
13906
|
isActive: external_exports.boolean(),
|
|
13875
13907
|
createdAt: datetimeSchema,
|
|
13876
13908
|
updatedAt: datetimeSchema
|
|
@@ -13878,7 +13910,7 @@ var emailNotificationConfigurationSchemaListItem = external_exports.discriminate
|
|
|
13878
13910
|
external_exports.object({
|
|
13879
13911
|
id: external_exports.string(),
|
|
13880
13912
|
templateKey: external_exports.literal("order_in_preparation"),
|
|
13881
|
-
config:
|
|
13913
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13882
13914
|
isActive: external_exports.boolean(),
|
|
13883
13915
|
createdAt: datetimeSchema,
|
|
13884
13916
|
updatedAt: datetimeSchema
|
|
@@ -13886,7 +13918,31 @@ var emailNotificationConfigurationSchemaListItem = external_exports.discriminate
|
|
|
13886
13918
|
external_exports.object({
|
|
13887
13919
|
id: external_exports.string(),
|
|
13888
13920
|
templateKey: external_exports.literal("order_preparation_done"),
|
|
13889
|
-
config:
|
|
13921
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13922
|
+
isActive: external_exports.boolean(),
|
|
13923
|
+
createdAt: datetimeSchema,
|
|
13924
|
+
updatedAt: datetimeSchema
|
|
13925
|
+
}),
|
|
13926
|
+
external_exports.object({
|
|
13927
|
+
id: external_exports.string(),
|
|
13928
|
+
templateKey: external_exports.literal("subscription_expiring"),
|
|
13929
|
+
config: emptyEmailNotificationConfigurationConfigSchema,
|
|
13930
|
+
isActive: external_exports.boolean(),
|
|
13931
|
+
createdAt: datetimeSchema,
|
|
13932
|
+
updatedAt: datetimeSchema
|
|
13933
|
+
}),
|
|
13934
|
+
external_exports.object({
|
|
13935
|
+
id: external_exports.string(),
|
|
13936
|
+
templateKey: external_exports.literal("subscription_low_credits"),
|
|
13937
|
+
config: emptyEmailNotificationConfigurationConfigSchema,
|
|
13938
|
+
isActive: external_exports.boolean(),
|
|
13939
|
+
createdAt: datetimeSchema,
|
|
13940
|
+
updatedAt: datetimeSchema
|
|
13941
|
+
}),
|
|
13942
|
+
external_exports.object({
|
|
13943
|
+
id: external_exports.string(),
|
|
13944
|
+
templateKey: external_exports.literal("subscription_pending_renewal"),
|
|
13945
|
+
config: emptyEmailNotificationConfigurationConfigSchema,
|
|
13890
13946
|
isActive: external_exports.boolean(),
|
|
13891
13947
|
createdAt: datetimeSchema,
|
|
13892
13948
|
updatedAt: datetimeSchema
|
|
@@ -13895,32 +13951,47 @@ var emailNotificationConfigurationSchemaListItem = external_exports.discriminate
|
|
|
13895
13951
|
var writableUpdateEmailNotificationConfigurationSchema = external_exports.union([
|
|
13896
13952
|
external_exports.object({
|
|
13897
13953
|
templateKey: external_exports.literal("delivery_started"),
|
|
13898
|
-
config:
|
|
13954
|
+
config: orderEmailNotificationConfigurationConfigSchema.optional(),
|
|
13899
13955
|
isActive: external_exports.boolean().optional()
|
|
13900
13956
|
}),
|
|
13901
13957
|
external_exports.object({
|
|
13902
13958
|
templateKey: external_exports.literal("delivery_taken_over"),
|
|
13903
|
-
config:
|
|
13959
|
+
config: orderEmailNotificationConfigurationConfigSchema.optional(),
|
|
13904
13960
|
isActive: external_exports.boolean().optional()
|
|
13905
13961
|
}),
|
|
13906
13962
|
external_exports.object({
|
|
13907
13963
|
templateKey: external_exports.literal("order_created"),
|
|
13908
|
-
config:
|
|
13964
|
+
config: orderEmailNotificationConfigurationConfigSchema.optional(),
|
|
13909
13965
|
isActive: external_exports.boolean().optional()
|
|
13910
13966
|
}),
|
|
13911
13967
|
external_exports.object({
|
|
13912
13968
|
templateKey: external_exports.literal("order_delivered"),
|
|
13913
|
-
config:
|
|
13969
|
+
config: orderEmailNotificationConfigurationConfigSchema.optional(),
|
|
13914
13970
|
isActive: external_exports.boolean().optional()
|
|
13915
13971
|
}),
|
|
13916
13972
|
external_exports.object({
|
|
13917
13973
|
templateKey: external_exports.literal("order_in_preparation"),
|
|
13918
|
-
config:
|
|
13974
|
+
config: orderEmailNotificationConfigurationConfigSchema.optional(),
|
|
13919
13975
|
isActive: external_exports.boolean().optional()
|
|
13920
13976
|
}),
|
|
13921
13977
|
external_exports.object({
|
|
13922
13978
|
templateKey: external_exports.literal("order_preparation_done"),
|
|
13923
|
-
config:
|
|
13979
|
+
config: orderEmailNotificationConfigurationConfigSchema.optional(),
|
|
13980
|
+
isActive: external_exports.boolean().optional()
|
|
13981
|
+
}),
|
|
13982
|
+
external_exports.object({
|
|
13983
|
+
templateKey: external_exports.literal("subscription_expiring"),
|
|
13984
|
+
config: emptyEmailNotificationConfigurationConfigSchema.optional(),
|
|
13985
|
+
isActive: external_exports.boolean().optional()
|
|
13986
|
+
}),
|
|
13987
|
+
external_exports.object({
|
|
13988
|
+
templateKey: external_exports.literal("subscription_low_credits"),
|
|
13989
|
+
config: emptyEmailNotificationConfigurationConfigSchema.optional(),
|
|
13990
|
+
isActive: external_exports.boolean().optional()
|
|
13991
|
+
}),
|
|
13992
|
+
external_exports.object({
|
|
13993
|
+
templateKey: external_exports.literal("subscription_pending_renewal"),
|
|
13994
|
+
config: emptyEmailNotificationConfigurationConfigSchema.optional(),
|
|
13924
13995
|
isActive: external_exports.boolean().optional()
|
|
13925
13996
|
})
|
|
13926
13997
|
]);
|
|
@@ -13928,37 +13999,55 @@ var writableCreateEmailNotificationConfigurationSchema = external_exports.union(
|
|
|
13928
13999
|
external_exports.object({
|
|
13929
14000
|
pointOfSale: pointOfSaleIriSchema,
|
|
13930
14001
|
templateKey: external_exports.literal("delivery_started"),
|
|
13931
|
-
config:
|
|
14002
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13932
14003
|
isActive: external_exports.boolean()
|
|
13933
14004
|
}),
|
|
13934
14005
|
external_exports.object({
|
|
13935
14006
|
pointOfSale: pointOfSaleIriSchema,
|
|
13936
14007
|
templateKey: external_exports.literal("delivery_taken_over"),
|
|
13937
|
-
config:
|
|
14008
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13938
14009
|
isActive: external_exports.boolean()
|
|
13939
14010
|
}),
|
|
13940
14011
|
external_exports.object({
|
|
13941
14012
|
pointOfSale: pointOfSaleIriSchema,
|
|
13942
14013
|
templateKey: external_exports.literal("order_created"),
|
|
13943
|
-
config:
|
|
14014
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13944
14015
|
isActive: external_exports.boolean()
|
|
13945
14016
|
}),
|
|
13946
14017
|
external_exports.object({
|
|
13947
14018
|
pointOfSale: pointOfSaleIriSchema,
|
|
13948
14019
|
templateKey: external_exports.literal("order_delivered"),
|
|
13949
|
-
config:
|
|
14020
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13950
14021
|
isActive: external_exports.boolean()
|
|
13951
14022
|
}),
|
|
13952
14023
|
external_exports.object({
|
|
13953
14024
|
pointOfSale: pointOfSaleIriSchema,
|
|
13954
14025
|
templateKey: external_exports.literal("order_in_preparation"),
|
|
13955
|
-
config:
|
|
14026
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
13956
14027
|
isActive: external_exports.boolean()
|
|
13957
14028
|
}),
|
|
13958
14029
|
external_exports.object({
|
|
13959
14030
|
pointOfSale: pointOfSaleIriSchema,
|
|
13960
14031
|
templateKey: external_exports.literal("order_preparation_done"),
|
|
13961
|
-
config:
|
|
14032
|
+
config: orderEmailNotificationConfigurationConfigSchema,
|
|
14033
|
+
isActive: external_exports.boolean()
|
|
14034
|
+
}),
|
|
14035
|
+
external_exports.object({
|
|
14036
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
14037
|
+
templateKey: external_exports.literal("subscription_expiring"),
|
|
14038
|
+
config: emptyEmailNotificationConfigurationConfigSchema,
|
|
14039
|
+
isActive: external_exports.boolean()
|
|
14040
|
+
}),
|
|
14041
|
+
external_exports.object({
|
|
14042
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
14043
|
+
templateKey: external_exports.literal("subscription_low_credits"),
|
|
14044
|
+
config: emptyEmailNotificationConfigurationConfigSchema,
|
|
14045
|
+
isActive: external_exports.boolean()
|
|
14046
|
+
}),
|
|
14047
|
+
external_exports.object({
|
|
14048
|
+
pointOfSale: pointOfSaleIriSchema,
|
|
14049
|
+
templateKey: external_exports.literal("subscription_pending_renewal"),
|
|
14050
|
+
config: emptyEmailNotificationConfigurationConfigSchema,
|
|
13962
14051
|
isActive: external_exports.boolean()
|
|
13963
14052
|
})
|
|
13964
14053
|
]);
|
|
@@ -14131,6 +14220,7 @@ export {
|
|
|
14131
14220
|
emailNotificationConfigurationSchema,
|
|
14132
14221
|
emailNotificationConfigurationSchemaListItem,
|
|
14133
14222
|
emailNotificationConfigurationsQuerySchema,
|
|
14223
|
+
emptyEmailNotificationConfigurationConfigSchema,
|
|
14134
14224
|
getEmailNotificationConfigurationDetailsInputSchema,
|
|
14135
14225
|
getEmailNotificationConfigurationDetailsResponseSchema,
|
|
14136
14226
|
getEmailNotificationConfigurationsFromPointOfSaleInputSchema,
|
|
@@ -14139,6 +14229,7 @@ export {
|
|
|
14139
14229
|
getEmailNotificationConfigurationsInputSchema,
|
|
14140
14230
|
getEmailNotificationConfigurationsQuerySchema,
|
|
14141
14231
|
getEmailNotificationConfigurationsResponseSchema,
|
|
14232
|
+
orderEmailNotificationConfigurationConfigSchema,
|
|
14142
14233
|
updateEmailNotificationConfigurationInputSchema,
|
|
14143
14234
|
updateEmailNotificationConfigurationResponseSchema,
|
|
14144
14235
|
writableCreateEmailNotificationConfigurationSchema,
|
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.13.
|
|
4
|
+
"version": "2.13.2",
|
|
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.13.
|
|
22
|
-
"@deliverart/sdk-js-global-types": "2.13.
|
|
23
|
-
"@deliverart/sdk-js-point-of-sale": "2.13.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.13.2",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.13.2",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.13.2"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|