@social-mail/social-mail-client 1.2.704 → 1.2.705
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/dist/admin/AdminAppIndex.pack.js +310 -25
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +3 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/stores/products/ProductEditor.js +1 -1
- package/dist/common/pages/stores/products/ProductEditor.js.map +1 -1
- package/dist/model/model.d.ts +60 -5
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +307 -22
- package/dist/model/model.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +307 -22
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.js +307 -22
- package/dist/public/preview/zip/DownloadZip.pack.js.map +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.min.js +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.min.js.map +1 -1
- package/dist/public/store/Store.pack.js +307 -22
- package/dist/public/store/Store.pack.js.map +1 -1
- package/dist/public/store/Store.pack.min.js +1 -1
- package/dist/public/store/Store.pack.min.js.map +1 -1
- package/dist/public/store/StoreApp.pack.js +307 -22
- package/dist/public/store/StoreApp.pack.js.map +1 -1
- package/dist/public/store/StoreApp.pack.min.js +1 -1
- package/dist/public/store/StoreApp.pack.min.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.js +307 -22
- package/dist/public/store/cart/ShoppingCart.pack.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.min.js +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.min.js.map +1 -1
- package/dist/services/store/StoreItemService.js +2 -2
- package/dist/services/store/StoreItemService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +310 -25
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +3 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/stores/products/ProductEditor.tsx +1 -1
- package/src/model/model.ts +78 -12
- package/src/services/store/StoreItemService.ts +2 -2
|
@@ -15456,7 +15456,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
15456
15456
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
15457
15457
|
"use strict";
|
|
15458
15458
|
|
|
15459
|
-
var DateTime, Model, DefaultFactory, modelEntitySchemas, AppRole, AppFileContentDispositionArray, AppFile, AccessToken, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Contact, ContactEmail, ContactPhone, ContactItem, ContactDomain, ContactAddress, CachedItem, Domain, HostedDomain, DomainUser, HostedZone, HostedZoneRecordTypeArray, HostedZoneRecord, HostedZoneUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailEngagement, EmailLog, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress, EmailTemplate, Mailbox, MailboxEmail, MailboxContactStatusArray, MailboxContact, MailboxContactEvent, MailboxFolder, MailboxContactEmail, MailboxContactTag, MailboxTag, MailboxSyncTargetDirectionArray, MailboxSyncTargetProtocolArray, MailboxSyncTargetLastSyncStatusArray, MailboxSyncTarget, NameToken, ChannelConfig, SubscriberActivity, SearchWordStatusArray, SearchWord, SearchWordIndex, ServerActivityActivityArray, ServerActivity, StoreConfig, StoreItemItemTypeArray, StoreItem, StoreItemFolder, StoreItemFolderTag, StoreItemPrice, StorePaymentAttempt, StoreMediaFile, StoreInsight, StoreAccount, StoreAccountAddress, StoreAccountEmail, StoreAccountPhone, StorePaymentGatewayPaymentGatewayArray, StorePaymentGateway, StoreJournalJournalTypeArray, StoreJournal, StoreJournalEntry, StoreJournalLineItemItemTypeArray, StoreJournalLineItem, StoreItemTax, StoreTag, StoreItemTag, UserStatusArray, User, UserPin, UserPushSubscription, UserRole, UserMailbox, UserAuthFactorMethodArray, UserAuthFactor, WebSiteFolder, WebSiteFolderHost, WebSiteFolderVersion, WebSiteChannel, LoginSession, TextDocument, IncomingSmsSource, VerificationTokenTypeArray, VerificationToken, VerificationTokenAddress, EmailAddressName, Tag, fixRelatedSchemas;
|
|
15459
|
+
var DateTime, Model, DefaultFactory, modelEntitySchemas, AppRole, AppFileContentDispositionArray, AppFile, AccessToken, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Contact, ContactEmail, ContactPhone, ContactItem, ContactDomain, ContactAddress, CachedItem, Domain, HostedDomain, DomainUser, HostedZone, HostedZoneRecordTypeArray, HostedZoneRecord, HostedZoneUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailEngagement, EmailLog, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress, EmailTemplate, Mailbox, MailboxEmail, MailboxContactStatusArray, MailboxContact, MailboxContactEvent, MailboxFolder, MailboxContactEmail, MailboxContactTag, MailboxTag, MailboxSyncTargetDirectionArray, MailboxSyncTargetProtocolArray, MailboxSyncTargetLastSyncStatusArray, MailboxSyncTarget, NameToken, ChannelConfig, SubscriberActivity, SearchWordStatusArray, SearchWord, SearchWordIndex, ServerActivityActivityArray, ServerActivity, StoreConfig, StoreItemItemTypeArray, StoreItemItemUnitTypeArray, StoreItem, StoreCouponTypeArray, StoreCoupon, StoreJournalCoupon, StoreItemFolder, StoreItemFolderTag, StoreItemPrice, StorePaymentAttempt, StoreMediaFile, StoreInsight, StoreAccount, StoreAccountAddress, StoreAccountEmail, StoreAccountPhone, StorePaymentGatewayPaymentGatewayArray, StorePaymentGateway, StoreJournalJournalTypeArray, StoreJournal, StoreJournalEntry, StoreJournalLineItemItemTypeArray, StoreJournalLineItem, StoreItemTax, StoreTag, StoreItemTag, UserStatusArray, User, UserPin, UserPushSubscription, UserRole, UserMailbox, UserAuthFactorMethodArray, UserAuthFactor, WebSiteFolder, WebSiteFolderHost, WebSiteFolderVersion, WebSiteChannel, LoginSession, TextDocument, IncomingSmsSource, VerificationTokenTypeArray, VerificationToken, VerificationTokenAddress, EmailAddressName, Tag, fixRelatedSchemas;
|
|
15460
15460
|
return {
|
|
15461
15461
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
15462
15462
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -19043,10 +19043,39 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
19043
19043
|
"label": "size",
|
|
19044
19044
|
"value": "size"
|
|
19045
19045
|
}]);
|
|
19046
|
+
_export("StoreItemItemUnitTypeArray", StoreItemItemUnitTypeArray = [{
|
|
19047
|
+
"label": "product",
|
|
19048
|
+
"value": "product"
|
|
19049
|
+
}, {
|
|
19050
|
+
"label": "e-product",
|
|
19051
|
+
"value": "e-product"
|
|
19052
|
+
}, {
|
|
19053
|
+
"label": "shipping",
|
|
19054
|
+
"value": "shipping"
|
|
19055
|
+
}, {
|
|
19056
|
+
"label": "service",
|
|
19057
|
+
"value": "service"
|
|
19058
|
+
}, {
|
|
19059
|
+
"label": "tax",
|
|
19060
|
+
"value": "tax"
|
|
19061
|
+
}, {
|
|
19062
|
+
"label": "fee",
|
|
19063
|
+
"value": "fee"
|
|
19064
|
+
}, {
|
|
19065
|
+
"label": "commission",
|
|
19066
|
+
"value": "commission"
|
|
19067
|
+
}, {
|
|
19068
|
+
"label": "variant",
|
|
19069
|
+
"value": "variant"
|
|
19070
|
+
}, {
|
|
19071
|
+
"label": "size",
|
|
19072
|
+
"value": "size"
|
|
19073
|
+
}]);
|
|
19046
19074
|
_export("StoreItem", StoreItem = new Model("StoreItem", ["storeItemID"], {
|
|
19047
19075
|
name: "",
|
|
19048
19076
|
active: false,
|
|
19049
19077
|
itemType: "product",
|
|
19078
|
+
itemUnit: 0,
|
|
19050
19079
|
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
19051
19080
|
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
19052
19081
|
price: 0,
|
|
@@ -19094,6 +19123,17 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
19094
19123
|
"dataType": "Char",
|
|
19095
19124
|
"length": 20,
|
|
19096
19125
|
"default": ["itemType", "\"product\""]
|
|
19126
|
+
}, {
|
|
19127
|
+
"name": "itemUnitType",
|
|
19128
|
+
"type": "string",
|
|
19129
|
+
"dataType": "Char",
|
|
19130
|
+
"length": 50,
|
|
19131
|
+
"default": ["itemUnitType", "\"product\""]
|
|
19132
|
+
}, {
|
|
19133
|
+
"name": "itemUnit",
|
|
19134
|
+
"type": "number",
|
|
19135
|
+
"dataType": "Decimal",
|
|
19136
|
+
"default": ["itemUnit", "0"]
|
|
19097
19137
|
}, {
|
|
19098
19138
|
"name": "folderID",
|
|
19099
19139
|
"type": "number",
|
|
@@ -19183,6 +19223,16 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
19183
19223
|
"relatedKey": "accountID"
|
|
19184
19224
|
}],
|
|
19185
19225
|
"relatedName": "StoreAccount"
|
|
19226
|
+
}, {
|
|
19227
|
+
"name": "itemCoupons",
|
|
19228
|
+
"isCollection": true,
|
|
19229
|
+
"isInverse": true,
|
|
19230
|
+
"relatedName": "StoreCoupon"
|
|
19231
|
+
}, {
|
|
19232
|
+
"name": "lineItems",
|
|
19233
|
+
"isCollection": true,
|
|
19234
|
+
"isInverse": true,
|
|
19235
|
+
"relatedName": "StoreJournalLineItem"
|
|
19186
19236
|
}, {
|
|
19187
19237
|
"name": "storeItemPrices",
|
|
19188
19238
|
"isCollection": true,
|
|
@@ -19199,12 +19249,7 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
19199
19249
|
"isInverse": true,
|
|
19200
19250
|
"relatedName": "StoreInsight"
|
|
19201
19251
|
}, {
|
|
19202
|
-
"name": "
|
|
19203
|
-
"isCollection": true,
|
|
19204
|
-
"isInverse": true,
|
|
19205
|
-
"relatedName": "StoreJournalLineItem"
|
|
19206
|
-
}, {
|
|
19207
|
-
"name": "taxes",
|
|
19252
|
+
"name": "applicableTaxes",
|
|
19208
19253
|
"isCollection": true,
|
|
19209
19254
|
"isInverse": true,
|
|
19210
19255
|
"relatedName": "StoreItemTax"
|
|
@@ -19224,6 +19269,179 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
19224
19269
|
}
|
|
19225
19270
|
}));
|
|
19226
19271
|
modelEntitySchemas["StoreItem"] = StoreItem;
|
|
19272
|
+
_export("StoreCouponTypeArray", StoreCouponTypeArray = [{
|
|
19273
|
+
"label": "discount",
|
|
19274
|
+
"value": "discount"
|
|
19275
|
+
}, {
|
|
19276
|
+
"label": "subtract",
|
|
19277
|
+
"value": "subtract"
|
|
19278
|
+
}]);
|
|
19279
|
+
_export("StoreCoupon", StoreCoupon = new Model("StoreCoupon", ["couponID"], {
|
|
19280
|
+
code: "",
|
|
19281
|
+
active: false,
|
|
19282
|
+
hidden: false,
|
|
19283
|
+
startDate: new DefaultFactory(() => new DateTime()),
|
|
19284
|
+
exclusive: false,
|
|
19285
|
+
minOrderAmount: 0,
|
|
19286
|
+
maxOrderAmount: 0,
|
|
19287
|
+
minQuantity: 0,
|
|
19288
|
+
maxQuantity: 0,
|
|
19289
|
+
amount: 0,
|
|
19290
|
+
type: "discount"
|
|
19291
|
+
}, {
|
|
19292
|
+
"name": "store_coupons",
|
|
19293
|
+
"keys": [{
|
|
19294
|
+
"name": "couponID",
|
|
19295
|
+
"type": "number",
|
|
19296
|
+
"generated": "identity",
|
|
19297
|
+
"dataType": "BigInt"
|
|
19298
|
+
}],
|
|
19299
|
+
"properties": [{
|
|
19300
|
+
"name": "storeID",
|
|
19301
|
+
"type": "number",
|
|
19302
|
+
"dataType": "BigInt"
|
|
19303
|
+
}, {
|
|
19304
|
+
"name": "code",
|
|
19305
|
+
"type": "string",
|
|
19306
|
+
"dataType": "Char",
|
|
19307
|
+
"length": 100,
|
|
19308
|
+
"default": ["code", "\"\""]
|
|
19309
|
+
}, {
|
|
19310
|
+
"name": "active",
|
|
19311
|
+
"type": "boolean",
|
|
19312
|
+
"dataType": "Boolean",
|
|
19313
|
+
"default": ["active", "false"]
|
|
19314
|
+
}, {
|
|
19315
|
+
"name": "hidden",
|
|
19316
|
+
"type": "boolean",
|
|
19317
|
+
"dataType": "Boolean",
|
|
19318
|
+
"default": ["hidden", "false"]
|
|
19319
|
+
}, {
|
|
19320
|
+
"name": "itemID",
|
|
19321
|
+
"type": "number",
|
|
19322
|
+
"dataType": "BigInt"
|
|
19323
|
+
}, {
|
|
19324
|
+
"name": "startDate",
|
|
19325
|
+
"type": "DateTime",
|
|
19326
|
+
"dataType": "DateTime",
|
|
19327
|
+
"default": ["startDate", "new DefaultFactory(() => new DateTime())"]
|
|
19328
|
+
}, {
|
|
19329
|
+
"name": "endDate",
|
|
19330
|
+
"type": "DateTime",
|
|
19331
|
+
"dataType": "DateTime",
|
|
19332
|
+
"default": ["endDate", "new DefaultFactory(() => new DateTime())"]
|
|
19333
|
+
}, {
|
|
19334
|
+
"name": "exclusive",
|
|
19335
|
+
"type": "boolean",
|
|
19336
|
+
"dataType": "Boolean",
|
|
19337
|
+
"default": ["exclusive", "false"]
|
|
19338
|
+
}, {
|
|
19339
|
+
"name": "minOrderAmount",
|
|
19340
|
+
"type": "number",
|
|
19341
|
+
"dataType": "Decimal",
|
|
19342
|
+
"default": ["minOrderAmount", "0"]
|
|
19343
|
+
}, {
|
|
19344
|
+
"name": "maxOrderAmount",
|
|
19345
|
+
"type": "number",
|
|
19346
|
+
"dataType": "Decimal",
|
|
19347
|
+
"default": ["maxOrderAmount", "0"]
|
|
19348
|
+
}, {
|
|
19349
|
+
"name": "minQuantity",
|
|
19350
|
+
"type": "number",
|
|
19351
|
+
"dataType": "Int",
|
|
19352
|
+
"default": ["minQuantity", "0"]
|
|
19353
|
+
}, {
|
|
19354
|
+
"name": "maxQuantity",
|
|
19355
|
+
"type": "number",
|
|
19356
|
+
"dataType": "Int",
|
|
19357
|
+
"default": ["maxQuantity", "0"]
|
|
19358
|
+
}, {
|
|
19359
|
+
"name": "amount",
|
|
19360
|
+
"type": "number",
|
|
19361
|
+
"dataType": "Int",
|
|
19362
|
+
"default": ["amount", "0"]
|
|
19363
|
+
}, {
|
|
19364
|
+
"name": "type",
|
|
19365
|
+
"type": "string",
|
|
19366
|
+
"dataType": "Char",
|
|
19367
|
+
"length": 50,
|
|
19368
|
+
"default": ["type", "\"discount\""]
|
|
19369
|
+
}],
|
|
19370
|
+
"relations": [{
|
|
19371
|
+
"name": "store",
|
|
19372
|
+
"fkMap": [{
|
|
19373
|
+
"fk": "storeID",
|
|
19374
|
+
"relatedKey": "folderID"
|
|
19375
|
+
}],
|
|
19376
|
+
"relatedName": "WebSiteFolder"
|
|
19377
|
+
}, {
|
|
19378
|
+
"name": "item",
|
|
19379
|
+
"fkMap": [{
|
|
19380
|
+
"fk": "itemID",
|
|
19381
|
+
"relatedKey": "storeItemID"
|
|
19382
|
+
}],
|
|
19383
|
+
"relatedName": "StoreItem"
|
|
19384
|
+
}, {
|
|
19385
|
+
"name": "orders",
|
|
19386
|
+
"isCollection": true,
|
|
19387
|
+
"isInverse": true,
|
|
19388
|
+
"relatedName": "StoreJournalCoupon"
|
|
19389
|
+
}]
|
|
19390
|
+
}));
|
|
19391
|
+
modelEntitySchemas["StoreCoupon"] = StoreCoupon;
|
|
19392
|
+
_export("StoreJournalCoupon", StoreJournalCoupon = new Model("StoreJournalCoupon", ["appliedCouponID"], {
|
|
19393
|
+
couponCode: ""
|
|
19394
|
+
}, {
|
|
19395
|
+
"name": "store_journal_coupons",
|
|
19396
|
+
"keys": [{
|
|
19397
|
+
"name": "appliedCouponID",
|
|
19398
|
+
"type": "number",
|
|
19399
|
+
"generated": "identity",
|
|
19400
|
+
"dataType": "BigInt"
|
|
19401
|
+
}],
|
|
19402
|
+
"properties": [{
|
|
19403
|
+
"name": "couponID",
|
|
19404
|
+
"type": "number",
|
|
19405
|
+
"dataType": "BigInt"
|
|
19406
|
+
}, {
|
|
19407
|
+
"name": "orderID",
|
|
19408
|
+
"type": "number",
|
|
19409
|
+
"dataType": "BigInt"
|
|
19410
|
+
}, {
|
|
19411
|
+
"name": "lineItemID",
|
|
19412
|
+
"type": "number",
|
|
19413
|
+
"dataType": "BigInt"
|
|
19414
|
+
}, {
|
|
19415
|
+
"name": "couponCode",
|
|
19416
|
+
"type": "string",
|
|
19417
|
+
"dataType": "Char",
|
|
19418
|
+
"length": 200,
|
|
19419
|
+
"default": ["couponCode", "\"\""]
|
|
19420
|
+
}],
|
|
19421
|
+
"relations": [{
|
|
19422
|
+
"name": "coupon",
|
|
19423
|
+
"fkMap": [{
|
|
19424
|
+
"fk": "couponID",
|
|
19425
|
+
"relatedKey": "couponID"
|
|
19426
|
+
}],
|
|
19427
|
+
"relatedName": "StoreCoupon"
|
|
19428
|
+
}, {
|
|
19429
|
+
"name": "order",
|
|
19430
|
+
"fkMap": [{
|
|
19431
|
+
"fk": "orderID",
|
|
19432
|
+
"relatedKey": "journalID"
|
|
19433
|
+
}],
|
|
19434
|
+
"relatedName": "StoreJournal"
|
|
19435
|
+
}, {
|
|
19436
|
+
"name": "lineItem",
|
|
19437
|
+
"fkMap": [{
|
|
19438
|
+
"fk": "lineItemID",
|
|
19439
|
+
"relatedKey": "lineItemID"
|
|
19440
|
+
}],
|
|
19441
|
+
"relatedName": "StoreJournalLineItem"
|
|
19442
|
+
}]
|
|
19443
|
+
}));
|
|
19444
|
+
modelEntitySchemas["StoreJournalCoupon"] = StoreJournalCoupon;
|
|
19227
19445
|
_export("StoreItemFolder", StoreItemFolder = new Model("StoreItemFolder", ["itemFolderID"], {
|
|
19228
19446
|
name: "",
|
|
19229
19447
|
path: ""
|
|
@@ -19711,6 +19929,11 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
19711
19929
|
"isCollection": true,
|
|
19712
19930
|
"isInverse": true,
|
|
19713
19931
|
"relatedName": "StoreAccountAddress"
|
|
19932
|
+
}, {
|
|
19933
|
+
"name": "soldItems",
|
|
19934
|
+
"isCollection": true,
|
|
19935
|
+
"isInverse": true,
|
|
19936
|
+
"relatedName": "StoreJournalLineItem"
|
|
19714
19937
|
}, {
|
|
19715
19938
|
"name": "storePaymentGateway",
|
|
19716
19939
|
"isCollection": false,
|
|
@@ -19731,11 +19954,6 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
19731
19954
|
"isCollection": true,
|
|
19732
19955
|
"isInverse": true,
|
|
19733
19956
|
"relatedName": "StoreJournalEntry"
|
|
19734
|
-
}, {
|
|
19735
|
-
"name": "soldItems",
|
|
19736
|
-
"isCollection": true,
|
|
19737
|
-
"isInverse": true,
|
|
19738
|
-
"relatedName": "StoreJournalLineItem"
|
|
19739
19957
|
}]
|
|
19740
19958
|
}));
|
|
19741
19959
|
modelEntitySchemas["StoreAccount"] = StoreAccount;
|
|
@@ -20217,6 +20435,16 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
20217
20435
|
"relatedKey": "appFileID"
|
|
20218
20436
|
}],
|
|
20219
20437
|
"relatedName": "AppFile"
|
|
20438
|
+
}, {
|
|
20439
|
+
"name": "orderCoupons",
|
|
20440
|
+
"isCollection": true,
|
|
20441
|
+
"isInverse": true,
|
|
20442
|
+
"relatedName": "StoreJournalCoupon"
|
|
20443
|
+
}, {
|
|
20444
|
+
"name": "lineItems",
|
|
20445
|
+
"isCollection": true,
|
|
20446
|
+
"isInverse": true,
|
|
20447
|
+
"relatedName": "StoreJournalLineItem"
|
|
20220
20448
|
}, {
|
|
20221
20449
|
"name": "paymentAttempts",
|
|
20222
20450
|
"isCollection": true,
|
|
@@ -20227,11 +20455,6 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
20227
20455
|
"isCollection": true,
|
|
20228
20456
|
"isInverse": true,
|
|
20229
20457
|
"relatedName": "StoreJournalEntry"
|
|
20230
|
-
}, {
|
|
20231
|
-
"name": "lineItems",
|
|
20232
|
-
"isCollection": true,
|
|
20233
|
-
"isInverse": true,
|
|
20234
|
-
"relatedName": "StoreJournalLineItem"
|
|
20235
20458
|
}]
|
|
20236
20459
|
}));
|
|
20237
20460
|
modelEntitySchemas["StoreJournal"] = StoreJournal;
|
|
@@ -20332,9 +20555,15 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
20332
20555
|
"value": "size"
|
|
20333
20556
|
}]);
|
|
20334
20557
|
_export("StoreJournalLineItem", StoreJournalLineItem = new Model("StoreJournalLineItem", ["lineItemID"], {
|
|
20558
|
+
price: 0,
|
|
20559
|
+
discountPercentage: 0,
|
|
20560
|
+
discount: 0,
|
|
20561
|
+
priceAfterDiscount: 0,
|
|
20562
|
+
couponDiscount: 0,
|
|
20563
|
+
quantity: 0,
|
|
20335
20564
|
amount: 0,
|
|
20565
|
+
taxes: 0,
|
|
20336
20566
|
total: 0,
|
|
20337
|
-
quantity: 0,
|
|
20338
20567
|
inclusive: false,
|
|
20339
20568
|
hide: false
|
|
20340
20569
|
}, {
|
|
@@ -20358,20 +20587,50 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
20358
20587
|
"type": "number",
|
|
20359
20588
|
"dataType": "BigInt"
|
|
20360
20589
|
}, {
|
|
20361
|
-
"name": "
|
|
20590
|
+
"name": "price",
|
|
20362
20591
|
"type": "number",
|
|
20363
20592
|
"dataType": "Decimal",
|
|
20364
|
-
"default": ["
|
|
20593
|
+
"default": ["price", "0"]
|
|
20365
20594
|
}, {
|
|
20366
|
-
"name": "
|
|
20595
|
+
"name": "discountPercentage",
|
|
20367
20596
|
"type": "number",
|
|
20368
20597
|
"dataType": "Decimal",
|
|
20369
|
-
"default": ["
|
|
20598
|
+
"default": ["discountPercentage", "0"]
|
|
20599
|
+
}, {
|
|
20600
|
+
"name": "discount",
|
|
20601
|
+
"type": "number",
|
|
20602
|
+
"dataType": "Decimal",
|
|
20603
|
+
"default": ["discount", "0"]
|
|
20604
|
+
}, {
|
|
20605
|
+
"name": "priceAfterDiscount",
|
|
20606
|
+
"type": "number",
|
|
20607
|
+
"dataType": "Decimal",
|
|
20608
|
+
"default": ["priceAfterDiscount", "0"]
|
|
20609
|
+
}, {
|
|
20610
|
+
"name": "couponDiscount",
|
|
20611
|
+
"type": "number",
|
|
20612
|
+
"dataType": "Decimal",
|
|
20613
|
+
"default": ["couponDiscount", "0"]
|
|
20370
20614
|
}, {
|
|
20371
20615
|
"name": "quantity",
|
|
20372
20616
|
"type": "number",
|
|
20373
20617
|
"dataType": "Decimal",
|
|
20374
20618
|
"default": ["quantity", "0"]
|
|
20619
|
+
}, {
|
|
20620
|
+
"name": "amount",
|
|
20621
|
+
"type": "number",
|
|
20622
|
+
"dataType": "Decimal",
|
|
20623
|
+
"default": ["amount", "0"]
|
|
20624
|
+
}, {
|
|
20625
|
+
"name": "taxes",
|
|
20626
|
+
"type": "number",
|
|
20627
|
+
"dataType": "Decimal",
|
|
20628
|
+
"default": ["taxes", "0"]
|
|
20629
|
+
}, {
|
|
20630
|
+
"name": "total",
|
|
20631
|
+
"type": "number",
|
|
20632
|
+
"dataType": "Decimal",
|
|
20633
|
+
"default": ["total", "0"]
|
|
20375
20634
|
}, {
|
|
20376
20635
|
"name": "inclusive",
|
|
20377
20636
|
"type": "boolean",
|
|
@@ -20396,6 +20655,10 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
20396
20655
|
"name": "sourceID",
|
|
20397
20656
|
"type": "number",
|
|
20398
20657
|
"dataType": "BigInt"
|
|
20658
|
+
}, {
|
|
20659
|
+
"name": "taxForID",
|
|
20660
|
+
"type": "number",
|
|
20661
|
+
"dataType": "BigInt"
|
|
20399
20662
|
}],
|
|
20400
20663
|
"relations": [{
|
|
20401
20664
|
"name": "journal",
|
|
@@ -20437,6 +20700,23 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
20437
20700
|
"isCollection": true,
|
|
20438
20701
|
"isInverse": true,
|
|
20439
20702
|
"relatedName": "StoreJournalLineItem"
|
|
20703
|
+
}, {
|
|
20704
|
+
"name": "taxFor",
|
|
20705
|
+
"fkMap": [{
|
|
20706
|
+
"fk": "taxForID",
|
|
20707
|
+
"relatedKey": "lineItemID"
|
|
20708
|
+
}],
|
|
20709
|
+
"relatedName": "StoreJournalLineItem"
|
|
20710
|
+
}, {
|
|
20711
|
+
"name": "taxLineItems",
|
|
20712
|
+
"isCollection": true,
|
|
20713
|
+
"isInverse": true,
|
|
20714
|
+
"relatedName": "StoreJournalLineItem"
|
|
20715
|
+
}, {
|
|
20716
|
+
"name": "coupons",
|
|
20717
|
+
"isCollection": true,
|
|
20718
|
+
"isInverse": true,
|
|
20719
|
+
"relatedName": "StoreJournalCoupon"
|
|
20440
20720
|
}, {
|
|
20441
20721
|
"name": "entries",
|
|
20442
20722
|
"isCollection": true,
|
|
@@ -21113,6 +21393,11 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
21113
21393
|
"isCollection": true,
|
|
21114
21394
|
"isInverse": true,
|
|
21115
21395
|
"relatedName": "StoreAccount"
|
|
21396
|
+
}, {
|
|
21397
|
+
"name": "coupons",
|
|
21398
|
+
"isCollection": true,
|
|
21399
|
+
"isInverse": true,
|
|
21400
|
+
"relatedName": "StoreCoupon"
|
|
21116
21401
|
}, {
|
|
21117
21402
|
"name": "journals",
|
|
21118
21403
|
"isCollection": true,
|
|
@@ -53855,7 +54140,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
53855
54140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53856
54141
|
const items = yield this.entityService.query(StoreItem).where({
|
|
53857
54142
|
id
|
|
53858
|
-
}, p => x => x.storeItemID === p.id || x.variantForID === p.id || x.sizeForID === p.id).include(x => [x.store.folder, x.itemFolder, x.fileFolder, x.storeItemPrices, x.variantFor, x.sizeFor, x.
|
|
54143
|
+
}, p => x => x.storeItemID === p.id || x.variantForID === p.id || x.sizeForID === p.id).include(x => [x.store.folder, x.itemFolder, x.fileFolder, x.storeItemPrices, x.variantFor, x.sizeFor, x.applicableTaxes.forEach(t => t.taxItem.storeItemPrices), x.mediaFiles.forEach(m => m.appFile), x.storeItemTags.forEach(t => t.tag)]).toArray();
|
|
53859
54144
|
const item = items.find(x => x.storeItemID === id);
|
|
53860
54145
|
(_a = item.storeItemTags) === null || _a === void 0 ? void 0 : _a.sort((a, b) => a.sortOrder - b.sortOrder);
|
|
53861
54146
|
return item;
|
|
@@ -53887,7 +54172,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
53887
54172
|
}
|
|
53888
54173
|
save(storeItem) {
|
|
53889
54174
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53890
|
-
yield this.entityService.save(storeItem, c => c.include(x => x.storeItemPrices).include(x => x.
|
|
54175
|
+
yield this.entityService.save(storeItem, c => c.include(x => x.storeItemPrices).include(x => x.applicableTaxes).include(x => x.storeItemTags).thenInclude(x => x.tag).include(x => x.mediaFiles));
|
|
53891
54176
|
return storeItem;
|
|
53892
54177
|
});
|
|
53893
54178
|
}
|
|
@@ -54701,7 +54986,7 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
54701
54986
|
}), XNode.create(CollectionEditorEx, {
|
|
54702
54987
|
label: "Taxes",
|
|
54703
54988
|
model: this.model,
|
|
54704
|
-
field: x => x.
|
|
54989
|
+
field: x => x.applicableTaxes,
|
|
54705
54990
|
addItemDefaults: {
|
|
54706
54991
|
taxItem: null,
|
|
54707
54992
|
storeItem: null
|