@social-mail/social-mail-client 1.2.653 → 1.2.655

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.
Files changed (39) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +23 -1
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +2 -2
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/common/pages/stores/payment-gateway/PaymentGatewayEditorPage.d.ts.map +1 -1
  6. package/dist/common/pages/stores/payment-gateway/PaymentGatewayEditorPage.js +9 -1
  7. package/dist/common/pages/stores/payment-gateway/PaymentGatewayEditorPage.js.map +1 -1
  8. package/dist/model/model.d.ts +3 -1
  9. package/dist/model/model.d.ts.map +1 -1
  10. package/dist/model/model.js +14 -0
  11. package/dist/model/model.js.map +1 -1
  12. package/dist/public/channel/ChannelView.pack.js +14 -0
  13. package/dist/public/channel/ChannelView.pack.js.map +1 -1
  14. package/dist/public/channel/ChannelView.pack.min.js +1 -1
  15. package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
  16. package/dist/public/preview/zip/DownloadZip.pack.js +14 -0
  17. package/dist/public/preview/zip/DownloadZip.pack.js.map +1 -1
  18. package/dist/public/preview/zip/DownloadZip.pack.min.js +1 -1
  19. package/dist/public/preview/zip/DownloadZip.pack.min.js.map +1 -1
  20. package/dist/public/store/Store.pack.js +14 -0
  21. package/dist/public/store/Store.pack.js.map +1 -1
  22. package/dist/public/store/Store.pack.min.js +1 -1
  23. package/dist/public/store/Store.pack.min.js.map +1 -1
  24. package/dist/public/store/StoreApp.pack.js +14 -0
  25. package/dist/public/store/StoreApp.pack.js.map +1 -1
  26. package/dist/public/store/StoreApp.pack.min.js +1 -1
  27. package/dist/public/store/StoreApp.pack.min.js.map +1 -1
  28. package/dist/public/store/cart/ShoppingCart.pack.js +14 -0
  29. package/dist/public/store/cart/ShoppingCart.pack.js.map +1 -1
  30. package/dist/public/store/cart/ShoppingCart.pack.min.js +1 -1
  31. package/dist/public/store/cart/ShoppingCart.pack.min.js.map +1 -1
  32. package/dist/tsconfig.tsbuildinfo +1 -1
  33. package/dist/web/AppIndex.pack.js +23 -1
  34. package/dist/web/AppIndex.pack.js.map +1 -1
  35. package/dist/web/AppIndex.pack.min.js +2 -2
  36. package/dist/web/AppIndex.pack.min.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/common/pages/stores/payment-gateway/PaymentGatewayEditorPage.tsx +8 -2
  39. package/src/model/model.ts +6 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.2.653",
3
+ "version": "1.2.655",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,6 +9,7 @@ import { SaveIconTextButton } from "../../../controls/buttons/IconButton";
9
9
  import Action from "@web-atoms/core/dist/view-model/Action";
10
10
  import InjectProperty from "@web-atoms/core/dist/core/InjectProperty";
11
11
  import EntityService from "../../../../services/EntityService";
12
+ import styled from "@web-atoms/core/dist/style/styled";
12
13
 
13
14
  export default class PaymentGatewayEditorPage extends ContentPage<IStorePaymentGateway> {
14
15
 
@@ -23,8 +24,8 @@ export default class PaymentGatewayEditorPage extends ContentPage<IStorePaymentG
23
24
 
24
25
  this.model = this.parameters;
25
26
 
26
- this.renderer = <div>
27
- <Form>
27
+ this.renderer = <div payment-gateway-editor="true">
28
+ <Form data-payment-type={Bind.oneWay(() => this.model.paymentGateway)}>
28
29
  <FormField label="Type">
29
30
  <Select
30
31
  items={StorePaymentGatewayPaymentGatewayArray}
@@ -37,6 +38,11 @@ export default class PaymentGatewayEditorPage extends ContentPage<IStorePaymentG
37
38
  <FormField label="Description">
38
39
  <input value={Bind.twoWaysImmediate(() => this.model.storeAccount.description)}/>
39
40
  </FormField>
41
+ <FormField
42
+ label="Public Key"
43
+ >
44
+ <input value={Bind.twoWaysImmediate(() => this.model.publicKey)}/>
45
+ </FormField>
40
46
  <FormField label="Client ID">
41
47
  <input value={Bind.twoWaysImmediate(() => this.model.clientID)}/>
42
48
  </FormField>
@@ -1196,6 +1196,7 @@ export interface IStorePaymentAttempt extends IClrEntity {
1196
1196
  readonly attemptID?: number;
1197
1197
  orderID?: number;
1198
1198
  gatewayID?: number;
1199
+ externalID?: string | null;
1199
1200
  dateCreated?: DateTime;
1200
1201
  dateUpdated?: DateTime;
1201
1202
  success?: boolean;
@@ -1207,7 +1208,7 @@ export const StorePaymentAttempt: IModel<IStorePaymentAttempt,any,any> = new Mod
1207
1208
  "StorePaymentAttempt",
1208
1209
  ["attemptID"],
1209
1210
  { dateCreated: new DefaultFactory(() => new DateTime()),dateUpdated: new DefaultFactory(() => new DateTime()),success: false },
1210
- {"name":"store_payment_attempt","keys":[{"name":"attemptID","type":"number","generated":"identity","dataType":"BigInt"}],"properties":[{"name":"orderID","type":"number","dataType":"BigInt"},{"name":"gatewayID","type":"number","dataType":"BigInt"},{"name":"dateCreated","type":"DateTime","dataType":"DateTime","default":["dateCreated","new DefaultFactory(() => new DateTime())"]},{"name":"dateUpdated","type":"DateTime","dataType":"DateTime","default":["dateUpdated","new DefaultFactory(() => new DateTime())"]},{"name":"success","type":"boolean","dataType":"Boolean","default":["success","false"]}],"relations":[{"name":"order","fkMap":[{"fk":"orderID","relatedKey":"journalID"}],"relatedName":"StoreJournal"},{"name":"gateway","fkMap":[{"fk":"gatewayID","relatedKey":"accountID"}],"relatedName":"StorePaymentGateway"}]}
1211
+ {"name":"store_payment_attempt","keys":[{"name":"attemptID","type":"number","generated":"identity","dataType":"BigInt"}],"properties":[{"name":"orderID","type":"number","dataType":"BigInt"},{"name":"gatewayID","type":"number","dataType":"BigInt"},{"name":"externalID","type":"string","dataType":"Char","length":400,"default":["externalID","\"\""]},{"name":"dateCreated","type":"DateTime","dataType":"DateTime","default":["dateCreated","new DefaultFactory(() => new DateTime())"]},{"name":"dateUpdated","type":"DateTime","dataType":"DateTime","default":["dateUpdated","new DefaultFactory(() => new DateTime())"]},{"name":"success","type":"boolean","dataType":"Boolean","default":["success","false"]}],"relations":[{"name":"order","fkMap":[{"fk":"orderID","relatedKey":"journalID"}],"relatedName":"StoreJournal"},{"name":"gateway","fkMap":[{"fk":"gatewayID","relatedKey":"accountID"}],"relatedName":"StorePaymentGateway"}]}
1211
1212
  );
1212
1213
  modelEntitySchemas["StorePaymentAttempt"] = StorePaymentAttempt;
1213
1214
 
@@ -1356,12 +1357,13 @@ modelEntitySchemas["StoreAccountPhone"] = StoreAccountPhone;
1356
1357
 
1357
1358
  export interface IStorePaymentGateway extends IClrEntity {
1358
1359
  accountID?: number;
1359
- paymentGateway?: "paypal" | "phone-pe" | null;
1360
+ paymentGateway?: "paypal" | "phone-pe" | "stripe" | null;
1360
1361
  isGatewayActive?: boolean;
1361
1362
  isDefault?: boolean;
1362
1363
  merchantID?: string | null;
1363
1364
  url?: string | null;
1364
1365
  accessID?: string | null;
1366
+ publicKey?: string | null;
1365
1367
  clientID?: string | null;
1366
1368
  saltIndex?: string | null;
1367
1369
  encryptedSalt?: string | null;
@@ -1374,13 +1376,13 @@ export interface IStorePaymentGateway extends IClrEntity {
1374
1376
  paymentAttempts?: ICollection<IStorePaymentAttempt>;
1375
1377
  }
1376
1378
 
1377
- export const StorePaymentGatewayPaymentGatewayArray = [{"label":"paypal","value":"paypal"},{"label":"phone-pe","value":"phone-pe"}];
1379
+ export const StorePaymentGatewayPaymentGatewayArray = [{"label":"paypal","value":"paypal"},{"label":"phone-pe","value":"phone-pe"},{"label":"stripe","value":"stripe"}];
1378
1380
 
1379
1381
  export const StorePaymentGateway: IModel<IStorePaymentGateway,any,any> = new Model<IStorePaymentGateway>(
1380
1382
  "StorePaymentGateway",
1381
1383
  ["accountID"],
1382
1384
  { isGatewayActive: false,isDefault: false },
1383
- {"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":"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"}]}
1385
+ {"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"}]}
1384
1386
  );
1385
1387
  modelEntitySchemas["StorePaymentGateway"] = StorePaymentGateway;
1386
1388