@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
|
@@ -13399,7 +13399,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
13399
13399
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
13400
13400
|
"use strict";
|
|
13401
13401
|
|
|
13402
|
-
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;
|
|
13402
|
+
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;
|
|
13403
13403
|
return {
|
|
13404
13404
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
13405
13405
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -16986,10 +16986,39 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
16986
16986
|
"label": "size",
|
|
16987
16987
|
"value": "size"
|
|
16988
16988
|
}]);
|
|
16989
|
+
_export("StoreItemItemUnitTypeArray", StoreItemItemUnitTypeArray = [{
|
|
16990
|
+
"label": "product",
|
|
16991
|
+
"value": "product"
|
|
16992
|
+
}, {
|
|
16993
|
+
"label": "e-product",
|
|
16994
|
+
"value": "e-product"
|
|
16995
|
+
}, {
|
|
16996
|
+
"label": "shipping",
|
|
16997
|
+
"value": "shipping"
|
|
16998
|
+
}, {
|
|
16999
|
+
"label": "service",
|
|
17000
|
+
"value": "service"
|
|
17001
|
+
}, {
|
|
17002
|
+
"label": "tax",
|
|
17003
|
+
"value": "tax"
|
|
17004
|
+
}, {
|
|
17005
|
+
"label": "fee",
|
|
17006
|
+
"value": "fee"
|
|
17007
|
+
}, {
|
|
17008
|
+
"label": "commission",
|
|
17009
|
+
"value": "commission"
|
|
17010
|
+
}, {
|
|
17011
|
+
"label": "variant",
|
|
17012
|
+
"value": "variant"
|
|
17013
|
+
}, {
|
|
17014
|
+
"label": "size",
|
|
17015
|
+
"value": "size"
|
|
17016
|
+
}]);
|
|
16989
17017
|
_export("StoreItem", StoreItem = new Model("StoreItem", ["storeItemID"], {
|
|
16990
17018
|
name: "",
|
|
16991
17019
|
active: false,
|
|
16992
17020
|
itemType: "product",
|
|
17021
|
+
itemUnit: 0,
|
|
16993
17022
|
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
16994
17023
|
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
16995
17024
|
price: 0,
|
|
@@ -17037,6 +17066,17 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17037
17066
|
"dataType": "Char",
|
|
17038
17067
|
"length": 20,
|
|
17039
17068
|
"default": ["itemType", "\"product\""]
|
|
17069
|
+
}, {
|
|
17070
|
+
"name": "itemUnitType",
|
|
17071
|
+
"type": "string",
|
|
17072
|
+
"dataType": "Char",
|
|
17073
|
+
"length": 50,
|
|
17074
|
+
"default": ["itemUnitType", "\"product\""]
|
|
17075
|
+
}, {
|
|
17076
|
+
"name": "itemUnit",
|
|
17077
|
+
"type": "number",
|
|
17078
|
+
"dataType": "Decimal",
|
|
17079
|
+
"default": ["itemUnit", "0"]
|
|
17040
17080
|
}, {
|
|
17041
17081
|
"name": "folderID",
|
|
17042
17082
|
"type": "number",
|
|
@@ -17126,6 +17166,16 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17126
17166
|
"relatedKey": "accountID"
|
|
17127
17167
|
}],
|
|
17128
17168
|
"relatedName": "StoreAccount"
|
|
17169
|
+
}, {
|
|
17170
|
+
"name": "itemCoupons",
|
|
17171
|
+
"isCollection": true,
|
|
17172
|
+
"isInverse": true,
|
|
17173
|
+
"relatedName": "StoreCoupon"
|
|
17174
|
+
}, {
|
|
17175
|
+
"name": "lineItems",
|
|
17176
|
+
"isCollection": true,
|
|
17177
|
+
"isInverse": true,
|
|
17178
|
+
"relatedName": "StoreJournalLineItem"
|
|
17129
17179
|
}, {
|
|
17130
17180
|
"name": "storeItemPrices",
|
|
17131
17181
|
"isCollection": true,
|
|
@@ -17142,12 +17192,7 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17142
17192
|
"isInverse": true,
|
|
17143
17193
|
"relatedName": "StoreInsight"
|
|
17144
17194
|
}, {
|
|
17145
|
-
"name": "
|
|
17146
|
-
"isCollection": true,
|
|
17147
|
-
"isInverse": true,
|
|
17148
|
-
"relatedName": "StoreJournalLineItem"
|
|
17149
|
-
}, {
|
|
17150
|
-
"name": "taxes",
|
|
17195
|
+
"name": "applicableTaxes",
|
|
17151
17196
|
"isCollection": true,
|
|
17152
17197
|
"isInverse": true,
|
|
17153
17198
|
"relatedName": "StoreItemTax"
|
|
@@ -17167,6 +17212,179 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17167
17212
|
}
|
|
17168
17213
|
}));
|
|
17169
17214
|
modelEntitySchemas["StoreItem"] = StoreItem;
|
|
17215
|
+
_export("StoreCouponTypeArray", StoreCouponTypeArray = [{
|
|
17216
|
+
"label": "discount",
|
|
17217
|
+
"value": "discount"
|
|
17218
|
+
}, {
|
|
17219
|
+
"label": "subtract",
|
|
17220
|
+
"value": "subtract"
|
|
17221
|
+
}]);
|
|
17222
|
+
_export("StoreCoupon", StoreCoupon = new Model("StoreCoupon", ["couponID"], {
|
|
17223
|
+
code: "",
|
|
17224
|
+
active: false,
|
|
17225
|
+
hidden: false,
|
|
17226
|
+
startDate: new DefaultFactory(() => new DateTime()),
|
|
17227
|
+
exclusive: false,
|
|
17228
|
+
minOrderAmount: 0,
|
|
17229
|
+
maxOrderAmount: 0,
|
|
17230
|
+
minQuantity: 0,
|
|
17231
|
+
maxQuantity: 0,
|
|
17232
|
+
amount: 0,
|
|
17233
|
+
type: "discount"
|
|
17234
|
+
}, {
|
|
17235
|
+
"name": "store_coupons",
|
|
17236
|
+
"keys": [{
|
|
17237
|
+
"name": "couponID",
|
|
17238
|
+
"type": "number",
|
|
17239
|
+
"generated": "identity",
|
|
17240
|
+
"dataType": "BigInt"
|
|
17241
|
+
}],
|
|
17242
|
+
"properties": [{
|
|
17243
|
+
"name": "storeID",
|
|
17244
|
+
"type": "number",
|
|
17245
|
+
"dataType": "BigInt"
|
|
17246
|
+
}, {
|
|
17247
|
+
"name": "code",
|
|
17248
|
+
"type": "string",
|
|
17249
|
+
"dataType": "Char",
|
|
17250
|
+
"length": 100,
|
|
17251
|
+
"default": ["code", "\"\""]
|
|
17252
|
+
}, {
|
|
17253
|
+
"name": "active",
|
|
17254
|
+
"type": "boolean",
|
|
17255
|
+
"dataType": "Boolean",
|
|
17256
|
+
"default": ["active", "false"]
|
|
17257
|
+
}, {
|
|
17258
|
+
"name": "hidden",
|
|
17259
|
+
"type": "boolean",
|
|
17260
|
+
"dataType": "Boolean",
|
|
17261
|
+
"default": ["hidden", "false"]
|
|
17262
|
+
}, {
|
|
17263
|
+
"name": "itemID",
|
|
17264
|
+
"type": "number",
|
|
17265
|
+
"dataType": "BigInt"
|
|
17266
|
+
}, {
|
|
17267
|
+
"name": "startDate",
|
|
17268
|
+
"type": "DateTime",
|
|
17269
|
+
"dataType": "DateTime",
|
|
17270
|
+
"default": ["startDate", "new DefaultFactory(() => new DateTime())"]
|
|
17271
|
+
}, {
|
|
17272
|
+
"name": "endDate",
|
|
17273
|
+
"type": "DateTime",
|
|
17274
|
+
"dataType": "DateTime",
|
|
17275
|
+
"default": ["endDate", "new DefaultFactory(() => new DateTime())"]
|
|
17276
|
+
}, {
|
|
17277
|
+
"name": "exclusive",
|
|
17278
|
+
"type": "boolean",
|
|
17279
|
+
"dataType": "Boolean",
|
|
17280
|
+
"default": ["exclusive", "false"]
|
|
17281
|
+
}, {
|
|
17282
|
+
"name": "minOrderAmount",
|
|
17283
|
+
"type": "number",
|
|
17284
|
+
"dataType": "Decimal",
|
|
17285
|
+
"default": ["minOrderAmount", "0"]
|
|
17286
|
+
}, {
|
|
17287
|
+
"name": "maxOrderAmount",
|
|
17288
|
+
"type": "number",
|
|
17289
|
+
"dataType": "Decimal",
|
|
17290
|
+
"default": ["maxOrderAmount", "0"]
|
|
17291
|
+
}, {
|
|
17292
|
+
"name": "minQuantity",
|
|
17293
|
+
"type": "number",
|
|
17294
|
+
"dataType": "Int",
|
|
17295
|
+
"default": ["minQuantity", "0"]
|
|
17296
|
+
}, {
|
|
17297
|
+
"name": "maxQuantity",
|
|
17298
|
+
"type": "number",
|
|
17299
|
+
"dataType": "Int",
|
|
17300
|
+
"default": ["maxQuantity", "0"]
|
|
17301
|
+
}, {
|
|
17302
|
+
"name": "amount",
|
|
17303
|
+
"type": "number",
|
|
17304
|
+
"dataType": "Int",
|
|
17305
|
+
"default": ["amount", "0"]
|
|
17306
|
+
}, {
|
|
17307
|
+
"name": "type",
|
|
17308
|
+
"type": "string",
|
|
17309
|
+
"dataType": "Char",
|
|
17310
|
+
"length": 50,
|
|
17311
|
+
"default": ["type", "\"discount\""]
|
|
17312
|
+
}],
|
|
17313
|
+
"relations": [{
|
|
17314
|
+
"name": "store",
|
|
17315
|
+
"fkMap": [{
|
|
17316
|
+
"fk": "storeID",
|
|
17317
|
+
"relatedKey": "folderID"
|
|
17318
|
+
}],
|
|
17319
|
+
"relatedName": "WebSiteFolder"
|
|
17320
|
+
}, {
|
|
17321
|
+
"name": "item",
|
|
17322
|
+
"fkMap": [{
|
|
17323
|
+
"fk": "itemID",
|
|
17324
|
+
"relatedKey": "storeItemID"
|
|
17325
|
+
}],
|
|
17326
|
+
"relatedName": "StoreItem"
|
|
17327
|
+
}, {
|
|
17328
|
+
"name": "orders",
|
|
17329
|
+
"isCollection": true,
|
|
17330
|
+
"isInverse": true,
|
|
17331
|
+
"relatedName": "StoreJournalCoupon"
|
|
17332
|
+
}]
|
|
17333
|
+
}));
|
|
17334
|
+
modelEntitySchemas["StoreCoupon"] = StoreCoupon;
|
|
17335
|
+
_export("StoreJournalCoupon", StoreJournalCoupon = new Model("StoreJournalCoupon", ["appliedCouponID"], {
|
|
17336
|
+
couponCode: ""
|
|
17337
|
+
}, {
|
|
17338
|
+
"name": "store_journal_coupons",
|
|
17339
|
+
"keys": [{
|
|
17340
|
+
"name": "appliedCouponID",
|
|
17341
|
+
"type": "number",
|
|
17342
|
+
"generated": "identity",
|
|
17343
|
+
"dataType": "BigInt"
|
|
17344
|
+
}],
|
|
17345
|
+
"properties": [{
|
|
17346
|
+
"name": "couponID",
|
|
17347
|
+
"type": "number",
|
|
17348
|
+
"dataType": "BigInt"
|
|
17349
|
+
}, {
|
|
17350
|
+
"name": "orderID",
|
|
17351
|
+
"type": "number",
|
|
17352
|
+
"dataType": "BigInt"
|
|
17353
|
+
}, {
|
|
17354
|
+
"name": "lineItemID",
|
|
17355
|
+
"type": "number",
|
|
17356
|
+
"dataType": "BigInt"
|
|
17357
|
+
}, {
|
|
17358
|
+
"name": "couponCode",
|
|
17359
|
+
"type": "string",
|
|
17360
|
+
"dataType": "Char",
|
|
17361
|
+
"length": 200,
|
|
17362
|
+
"default": ["couponCode", "\"\""]
|
|
17363
|
+
}],
|
|
17364
|
+
"relations": [{
|
|
17365
|
+
"name": "coupon",
|
|
17366
|
+
"fkMap": [{
|
|
17367
|
+
"fk": "couponID",
|
|
17368
|
+
"relatedKey": "couponID"
|
|
17369
|
+
}],
|
|
17370
|
+
"relatedName": "StoreCoupon"
|
|
17371
|
+
}, {
|
|
17372
|
+
"name": "order",
|
|
17373
|
+
"fkMap": [{
|
|
17374
|
+
"fk": "orderID",
|
|
17375
|
+
"relatedKey": "journalID"
|
|
17376
|
+
}],
|
|
17377
|
+
"relatedName": "StoreJournal"
|
|
17378
|
+
}, {
|
|
17379
|
+
"name": "lineItem",
|
|
17380
|
+
"fkMap": [{
|
|
17381
|
+
"fk": "lineItemID",
|
|
17382
|
+
"relatedKey": "lineItemID"
|
|
17383
|
+
}],
|
|
17384
|
+
"relatedName": "StoreJournalLineItem"
|
|
17385
|
+
}]
|
|
17386
|
+
}));
|
|
17387
|
+
modelEntitySchemas["StoreJournalCoupon"] = StoreJournalCoupon;
|
|
17170
17388
|
_export("StoreItemFolder", StoreItemFolder = new Model("StoreItemFolder", ["itemFolderID"], {
|
|
17171
17389
|
name: "",
|
|
17172
17390
|
path: ""
|
|
@@ -17654,6 +17872,11 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17654
17872
|
"isCollection": true,
|
|
17655
17873
|
"isInverse": true,
|
|
17656
17874
|
"relatedName": "StoreAccountAddress"
|
|
17875
|
+
}, {
|
|
17876
|
+
"name": "soldItems",
|
|
17877
|
+
"isCollection": true,
|
|
17878
|
+
"isInverse": true,
|
|
17879
|
+
"relatedName": "StoreJournalLineItem"
|
|
17657
17880
|
}, {
|
|
17658
17881
|
"name": "storePaymentGateway",
|
|
17659
17882
|
"isCollection": false,
|
|
@@ -17674,11 +17897,6 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
17674
17897
|
"isCollection": true,
|
|
17675
17898
|
"isInverse": true,
|
|
17676
17899
|
"relatedName": "StoreJournalEntry"
|
|
17677
|
-
}, {
|
|
17678
|
-
"name": "soldItems",
|
|
17679
|
-
"isCollection": true,
|
|
17680
|
-
"isInverse": true,
|
|
17681
|
-
"relatedName": "StoreJournalLineItem"
|
|
17682
17900
|
}]
|
|
17683
17901
|
}));
|
|
17684
17902
|
modelEntitySchemas["StoreAccount"] = StoreAccount;
|
|
@@ -18160,6 +18378,16 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
18160
18378
|
"relatedKey": "appFileID"
|
|
18161
18379
|
}],
|
|
18162
18380
|
"relatedName": "AppFile"
|
|
18381
|
+
}, {
|
|
18382
|
+
"name": "orderCoupons",
|
|
18383
|
+
"isCollection": true,
|
|
18384
|
+
"isInverse": true,
|
|
18385
|
+
"relatedName": "StoreJournalCoupon"
|
|
18386
|
+
}, {
|
|
18387
|
+
"name": "lineItems",
|
|
18388
|
+
"isCollection": true,
|
|
18389
|
+
"isInverse": true,
|
|
18390
|
+
"relatedName": "StoreJournalLineItem"
|
|
18163
18391
|
}, {
|
|
18164
18392
|
"name": "paymentAttempts",
|
|
18165
18393
|
"isCollection": true,
|
|
@@ -18170,11 +18398,6 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
18170
18398
|
"isCollection": true,
|
|
18171
18399
|
"isInverse": true,
|
|
18172
18400
|
"relatedName": "StoreJournalEntry"
|
|
18173
|
-
}, {
|
|
18174
|
-
"name": "lineItems",
|
|
18175
|
-
"isCollection": true,
|
|
18176
|
-
"isInverse": true,
|
|
18177
|
-
"relatedName": "StoreJournalLineItem"
|
|
18178
18401
|
}]
|
|
18179
18402
|
}));
|
|
18180
18403
|
modelEntitySchemas["StoreJournal"] = StoreJournal;
|
|
@@ -18275,9 +18498,15 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
18275
18498
|
"value": "size"
|
|
18276
18499
|
}]);
|
|
18277
18500
|
_export("StoreJournalLineItem", StoreJournalLineItem = new Model("StoreJournalLineItem", ["lineItemID"], {
|
|
18501
|
+
price: 0,
|
|
18502
|
+
discountPercentage: 0,
|
|
18503
|
+
discount: 0,
|
|
18504
|
+
priceAfterDiscount: 0,
|
|
18505
|
+
couponDiscount: 0,
|
|
18506
|
+
quantity: 0,
|
|
18278
18507
|
amount: 0,
|
|
18508
|
+
taxes: 0,
|
|
18279
18509
|
total: 0,
|
|
18280
|
-
quantity: 0,
|
|
18281
18510
|
inclusive: false,
|
|
18282
18511
|
hide: false
|
|
18283
18512
|
}, {
|
|
@@ -18301,20 +18530,50 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
18301
18530
|
"type": "number",
|
|
18302
18531
|
"dataType": "BigInt"
|
|
18303
18532
|
}, {
|
|
18304
|
-
"name": "
|
|
18533
|
+
"name": "price",
|
|
18305
18534
|
"type": "number",
|
|
18306
18535
|
"dataType": "Decimal",
|
|
18307
|
-
"default": ["
|
|
18536
|
+
"default": ["price", "0"]
|
|
18308
18537
|
}, {
|
|
18309
|
-
"name": "
|
|
18538
|
+
"name": "discountPercentage",
|
|
18310
18539
|
"type": "number",
|
|
18311
18540
|
"dataType": "Decimal",
|
|
18312
|
-
"default": ["
|
|
18541
|
+
"default": ["discountPercentage", "0"]
|
|
18542
|
+
}, {
|
|
18543
|
+
"name": "discount",
|
|
18544
|
+
"type": "number",
|
|
18545
|
+
"dataType": "Decimal",
|
|
18546
|
+
"default": ["discount", "0"]
|
|
18547
|
+
}, {
|
|
18548
|
+
"name": "priceAfterDiscount",
|
|
18549
|
+
"type": "number",
|
|
18550
|
+
"dataType": "Decimal",
|
|
18551
|
+
"default": ["priceAfterDiscount", "0"]
|
|
18552
|
+
}, {
|
|
18553
|
+
"name": "couponDiscount",
|
|
18554
|
+
"type": "number",
|
|
18555
|
+
"dataType": "Decimal",
|
|
18556
|
+
"default": ["couponDiscount", "0"]
|
|
18313
18557
|
}, {
|
|
18314
18558
|
"name": "quantity",
|
|
18315
18559
|
"type": "number",
|
|
18316
18560
|
"dataType": "Decimal",
|
|
18317
18561
|
"default": ["quantity", "0"]
|
|
18562
|
+
}, {
|
|
18563
|
+
"name": "amount",
|
|
18564
|
+
"type": "number",
|
|
18565
|
+
"dataType": "Decimal",
|
|
18566
|
+
"default": ["amount", "0"]
|
|
18567
|
+
}, {
|
|
18568
|
+
"name": "taxes",
|
|
18569
|
+
"type": "number",
|
|
18570
|
+
"dataType": "Decimal",
|
|
18571
|
+
"default": ["taxes", "0"]
|
|
18572
|
+
}, {
|
|
18573
|
+
"name": "total",
|
|
18574
|
+
"type": "number",
|
|
18575
|
+
"dataType": "Decimal",
|
|
18576
|
+
"default": ["total", "0"]
|
|
18318
18577
|
}, {
|
|
18319
18578
|
"name": "inclusive",
|
|
18320
18579
|
"type": "boolean",
|
|
@@ -18339,6 +18598,10 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
18339
18598
|
"name": "sourceID",
|
|
18340
18599
|
"type": "number",
|
|
18341
18600
|
"dataType": "BigInt"
|
|
18601
|
+
}, {
|
|
18602
|
+
"name": "taxForID",
|
|
18603
|
+
"type": "number",
|
|
18604
|
+
"dataType": "BigInt"
|
|
18342
18605
|
}],
|
|
18343
18606
|
"relations": [{
|
|
18344
18607
|
"name": "journal",
|
|
@@ -18380,6 +18643,23 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
18380
18643
|
"isCollection": true,
|
|
18381
18644
|
"isInverse": true,
|
|
18382
18645
|
"relatedName": "StoreJournalLineItem"
|
|
18646
|
+
}, {
|
|
18647
|
+
"name": "taxFor",
|
|
18648
|
+
"fkMap": [{
|
|
18649
|
+
"fk": "taxForID",
|
|
18650
|
+
"relatedKey": "lineItemID"
|
|
18651
|
+
}],
|
|
18652
|
+
"relatedName": "StoreJournalLineItem"
|
|
18653
|
+
}, {
|
|
18654
|
+
"name": "taxLineItems",
|
|
18655
|
+
"isCollection": true,
|
|
18656
|
+
"isInverse": true,
|
|
18657
|
+
"relatedName": "StoreJournalLineItem"
|
|
18658
|
+
}, {
|
|
18659
|
+
"name": "coupons",
|
|
18660
|
+
"isCollection": true,
|
|
18661
|
+
"isInverse": true,
|
|
18662
|
+
"relatedName": "StoreJournalCoupon"
|
|
18383
18663
|
}, {
|
|
18384
18664
|
"name": "entries",
|
|
18385
18665
|
"isCollection": true,
|
|
@@ -19056,6 +19336,11 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
19056
19336
|
"isCollection": true,
|
|
19057
19337
|
"isInverse": true,
|
|
19058
19338
|
"relatedName": "StoreAccount"
|
|
19339
|
+
}, {
|
|
19340
|
+
"name": "coupons",
|
|
19341
|
+
"isCollection": true,
|
|
19342
|
+
"isInverse": true,
|
|
19343
|
+
"relatedName": "StoreCoupon"
|
|
19059
19344
|
}, {
|
|
19060
19345
|
"name": "journals",
|
|
19061
19346
|
"isCollection": true,
|
|
@@ -57943,7 +58228,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
57943
58228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57944
58229
|
const items = yield this.entityService.query(StoreItem).where({
|
|
57945
58230
|
id
|
|
57946
|
-
}, 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.
|
|
58231
|
+
}, 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();
|
|
57947
58232
|
const item = items.find(x => x.storeItemID === id);
|
|
57948
58233
|
(_a = item.storeItemTags) === null || _a === void 0 ? void 0 : _a.sort((a, b) => a.sortOrder - b.sortOrder);
|
|
57949
58234
|
return item;
|
|
@@ -57975,7 +58260,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
57975
58260
|
}
|
|
57976
58261
|
save(storeItem) {
|
|
57977
58262
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57978
|
-
yield this.entityService.save(storeItem, c => c.include(x => x.storeItemPrices).include(x => x.
|
|
58263
|
+
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));
|
|
57979
58264
|
return storeItem;
|
|
57980
58265
|
});
|
|
57981
58266
|
}
|
|
@@ -58789,7 +59074,7 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "../.
|
|
|
58789
59074
|
}), XNode.create(CollectionEditorEx, {
|
|
58790
59075
|
label: "Taxes",
|
|
58791
59076
|
model: this.model,
|
|
58792
|
-
field: x => x.
|
|
59077
|
+
field: x => x.applicableTaxes,
|
|
58793
59078
|
addItemDefaults: {
|
|
58794
59079
|
taxItem: null,
|
|
58795
59080
|
storeItem: null
|