@social-mail/social-mail-client 1.2.686 → 1.2.688
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 +18 -3
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +2 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/stores/payment-gateway/PaymentGatewayEditorPage.d.ts.map +1 -1
- package/dist/common/pages/stores/payment-gateway/PaymentGatewayEditorPage.js +5 -2
- package/dist/common/pages/stores/payment-gateway/PaymentGatewayEditorPage.js.map +1 -1
- package/dist/model/model.d.ts +2 -0
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +13 -1
- package/dist/model/model.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +58 -2
- package/dist/public/store/StoreApp.pack.js.map +1 -1
- package/dist/public/store/StoreApp.pack.min.js +4 -4
- package/dist/public/store/StoreApp.pack.min.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.js +13 -1
- 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/public/store/commands/StoreCommands.d.ts +1 -0
- package/dist/public/store/commands/StoreCommands.d.ts.map +1 -1
- package/dist/public/store/commands/StoreCommands.js +5 -0
- package/dist/public/store/commands/StoreCommands.js.map +1 -1
- package/dist/public/store/pages/StoreBuyPage.d.ts +7 -0
- package/dist/public/store/pages/StoreBuyPage.d.ts.map +1 -0
- package/dist/public/store/pages/StoreBuyPage.js +36 -0
- package/dist/public/store/pages/StoreBuyPage.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +18 -3
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +2 -2
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/stores/payment-gateway/PaymentGatewayEditorPage.tsx +2 -0
- package/src/model/model.ts +4 -3
- package/src/public/store/commands/StoreCommands.ts +6 -0
- package/src/public/store/pages/StoreBuyPage.tsx +22 -0
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ import NavCrumbs from "../../../controls/NavCrumbs";
|
|
|
14
14
|
import CommonCommands from "../../../commands/CommonCommands";
|
|
15
15
|
import StoreService from "../../../../services/store/StoreService";
|
|
16
16
|
import StoreLink from "../StoreLink";
|
|
17
|
+
import DateTime from "@web-atoms/date-time/dist/DateTime";
|
|
17
18
|
|
|
18
19
|
export default class PaymentGatewayEditorPage extends ContentPage<IStorePaymentGateway> {
|
|
19
20
|
|
|
@@ -92,6 +93,7 @@ export default class PaymentGatewayEditorPage extends ContentPage<IStorePaymentG
|
|
|
92
93
|
|
|
93
94
|
@Action({ onEvent: "submitForm", close: true })
|
|
94
95
|
async submitForm() {
|
|
96
|
+
this.model.dateUpdated = DateTime.now;
|
|
95
97
|
await this.entityService.save(this.model, (c) => c.include((x) => x.storeAccount));
|
|
96
98
|
return this.model;
|
|
97
99
|
}
|
package/src/model/model.ts
CHANGED
|
@@ -1367,6 +1367,8 @@ export interface IStorePaymentGateway extends IClrEntity {
|
|
|
1367
1367
|
encryptedSecret?: string | null;
|
|
1368
1368
|
country?: string | null;
|
|
1369
1369
|
currency?: string | null;
|
|
1370
|
+
dateCreated?: DateTime;
|
|
1371
|
+
dateUpdated?: DateTime;
|
|
1370
1372
|
salt?: string;
|
|
1371
1373
|
secret?: string;
|
|
1372
1374
|
storeAccount?: IStoreAccount;
|
|
@@ -1378,8 +1380,8 @@ export const StorePaymentGatewayPaymentGatewayArray = [{"label":"paypal","value"
|
|
|
1378
1380
|
export const StorePaymentGateway: IModel<IStorePaymentGateway,any,any> = new Model<IStorePaymentGateway>(
|
|
1379
1381
|
"StorePaymentGateway",
|
|
1380
1382
|
["accountID"],
|
|
1381
|
-
{ isGatewayActive: false,isDefault: false },
|
|
1382
|
-
{"name":"store_payment_gateways","keys":[{"name":"accountID","type":"number","dataType":"BigInt"}],"properties":[{"name":"paymentGateway","type":"string","dataType":"Char","length":50,"default":["paymentGateway","\"paypal\""]},{"name":"isGatewayActive","type":"boolean","dataType":"Boolean","default":["isGatewayActive","false"]},{"name":"isDefault","type":"boolean","dataType":"Boolean","default":["isDefault","false"]},{"name":"merchantID","type":"string","dataType":"Char","length":400,"default":["merchantID","\"\""]},{"name":"url","type":"string","dataType":"Char","default":["url","\"\""]},{"name":"accessID","type":"string","dataType":"Char","default":["accessID","\"\""]},{"name":"publicKey","type":"string","dataType":"Char","default":["publicKey","\"\""]},{"name":"clientID","type":"string","dataType":"Char","default":["clientID","\"\""]},{"name":"saltIndex","type":"string","dataType":"Char","length":50,"default":["saltIndex","\"\""]},{"name":"encryptedSalt","type":"string","dataType":"Char","length":400,"default":["encryptedSalt","\"\""]},{"name":"encryptedSecret","type":"string","dataType":"Char","default":["encryptedSecret","\"\""]},{"name":"country","type":"string","dataType":"Char","length":20,"default":["country","\"\""]},{"name":"currency","type":"string","dataType":"Char","length":20,"default":["currency","\"\""]}],"relations":[{"name":"storeAccount","fkMap":[{"fk":"accountID","relatedKey":"accountID"}],"relatedName":"StoreAccount"},{"name":"paymentAttempts","isCollection":true,"isInverse":true,"relatedName":"StorePaymentAttempt"}]}
|
|
1383
|
+
{ isGatewayActive: false,isDefault: false,dateCreated: new DefaultFactory(() => new DateTime()),dateUpdated: new DefaultFactory(() => new DateTime()) },
|
|
1384
|
+
{"name":"store_payment_gateways","keys":[{"name":"accountID","type":"number","dataType":"BigInt"}],"properties":[{"name":"paymentGateway","type":"string","dataType":"Char","length":50,"default":["paymentGateway","\"paypal\""]},{"name":"isGatewayActive","type":"boolean","dataType":"Boolean","default":["isGatewayActive","false"]},{"name":"isDefault","type":"boolean","dataType":"Boolean","default":["isDefault","false"]},{"name":"merchantID","type":"string","dataType":"Char","length":400,"default":["merchantID","\"\""]},{"name":"url","type":"string","dataType":"Char","default":["url","\"\""]},{"name":"accessID","type":"string","dataType":"Char","default":["accessID","\"\""]},{"name":"publicKey","type":"string","dataType":"Char","default":["publicKey","\"\""]},{"name":"clientID","type":"string","dataType":"Char","default":["clientID","\"\""]},{"name":"saltIndex","type":"string","dataType":"Char","length":50,"default":["saltIndex","\"\""]},{"name":"encryptedSalt","type":"string","dataType":"Char","length":400,"default":["encryptedSalt","\"\""]},{"name":"encryptedSecret","type":"string","dataType":"Char","default":["encryptedSecret","\"\""]},{"name":"country","type":"string","dataType":"Char","length":20,"default":["country","\"\""]},{"name":"currency","type":"string","dataType":"Char","length":20,"default":["currency","\"\""]},{"name":"dateCreated","type":"DateTime","dataType":"DateTime","default":["dateCreated","new DefaultFactory(() => new DateTime())"]},{"name":"dateUpdated","type":"DateTime","dataType":"DateTime","default":["dateUpdated","new DefaultFactory(() => new DateTime())"]}],"relations":[{"name":"storeAccount","fkMap":[{"fk":"accountID","relatedKey":"accountID"}],"relatedName":"StoreAccount"},{"name":"paymentAttempts","isCollection":true,"isInverse":true,"relatedName":"StorePaymentAttempt"}]}
|
|
1383
1385
|
);
|
|
1384
1386
|
modelEntitySchemas["StorePaymentGateway"] = StorePaymentGateway;
|
|
1385
1387
|
|
|
@@ -1928,4 +1930,3 @@ iterator.relatedModel = schema[iterator.relatedName];
|
|
|
1928
1930
|
}
|
|
1929
1931
|
};
|
|
1930
1932
|
fixRelatedSchemas(modelEntitySchemas);
|
|
1931
|
-
|
|
@@ -14,6 +14,12 @@ export default class StoreCommands extends Commands {
|
|
|
14
14
|
openPage: () => import("../pages/StoreOrderPage")
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
+
static buy = Command.create({
|
|
18
|
+
route: "/store/buy/{productID}",
|
|
19
|
+
routeOrder: 10,
|
|
20
|
+
openPage: () => import("../pages/StoreBuyPage")
|
|
21
|
+
});
|
|
22
|
+
|
|
17
23
|
static productDetail = Command.create({
|
|
18
24
|
route: "/store/{storeItemID}/{*name}",
|
|
19
25
|
routeOrder: 100,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
2
|
+
import { ContentPage } from "@web-atoms/web-controls/dist/mobile-app/MobileApp";
|
|
3
|
+
import Loader from "../../../common/controls/Loader";
|
|
4
|
+
import InjectProperty from "@web-atoms/core/dist/core/InjectProperty";
|
|
5
|
+
import WebSiteUserService from "../../user/WebSiteUserService";
|
|
6
|
+
|
|
7
|
+
export default class StoreBuyPage extends ContentPage {
|
|
8
|
+
|
|
9
|
+
@InjectProperty
|
|
10
|
+
us: WebSiteUserService;
|
|
11
|
+
|
|
12
|
+
async init() {
|
|
13
|
+
this.renderer = <div>
|
|
14
|
+
<Loader/>;
|
|
15
|
+
</div>;
|
|
16
|
+
|
|
17
|
+
await this.us.getUser();
|
|
18
|
+
|
|
19
|
+
location.reload();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|