@social-mail/social-mail-web-server 1.4.949 → 1.4.950

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.
@@ -1,7 +1,8 @@
1
1
  import Page from "@entity-access/server-pages/dist/Page.js";
2
2
  import PhonePeGateway from "../../../../../server/services/payment-gateways/PhonePeGateway.js";
3
+ import Content from "@entity-access/server-pages/dist/Content.js";
3
4
  export default class extends Page {
4
5
  gateway: PhonePeGateway;
5
- run(): Promise<any>;
6
+ run(): Promise<Content>;
6
7
  }
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/wwwroot/routes/pg-i/phone-pe/create/index.tsx"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,0CAA0C,CAAC;AAC5D,OAAO,cAAc,MAAM,mEAAmE,CAAC;AAI/F,MAAM,CAAC,OAAO,MAAO,SAAQ,IAAI;IAG7B,OAAO,EAAE,cAAc,CAAC;IAElB,GAAG;CAmBZ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/wwwroot/routes/pg-i/phone-pe/create/index.tsx"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,0CAA0C,CAAC;AAC5D,OAAO,cAAc,MAAM,mEAAmE,CAAC;AAG/F,OAAO,OAAO,MAAM,6CAA6C,CAAC;AAElE,MAAM,CAAC,OAAO,MAAO,SAAQ,IAAI;IAG7B,OAAO,EAAE,cAAc,CAAC;IAElB,GAAG;CAmBZ"}
@@ -12,12 +12,13 @@ import Page from "@entity-access/server-pages/dist/Page.js";
12
12
  import PhonePeGateway from "../../../../../server/services/payment-gateways/PhonePeGateway.js";
13
13
  import HtmlDocument from "@entity-access/server-pages/dist/html/HtmlDocument.js";
14
14
  import XNode from "@entity-access/server-pages/dist/html/XNode.js";
15
+ import Content from "@entity-access/server-pages/dist/Content.js";
15
16
  export default class default_1 extends Page {
16
17
  async run() {
17
18
  const [itemID, currency] = this.childPath;
18
19
  const host = this.request.hostName;
19
20
  const pr = await this.gateway.createPaymentLink({ itemID, currency, host, testMode: this.query.test });
20
- return XNode.create(HtmlDocument, null,
21
+ return Content.html(XNode.create(HtmlDocument, null,
21
22
  XNode.create("head", null,
22
23
  XNode.create("title", null, "Creating Payment Request")),
23
24
  XNode.create("body", null,
@@ -25,7 +26,7 @@ export default class default_1 extends Page {
25
26
  XNode.create("script", null,
26
27
  "location.href = ",
27
28
  JSON.stringify(pr.url),
28
- ";")));
29
+ ";"))));
29
30
  }
30
31
  }
31
32
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/wwwroot/routes/pg-i/phone-pe/create/index.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,MAAM,MAAM,4CAA4C,CAAC;AAChE,OAAO,IAAI,MAAM,0CAA0C,CAAC;AAC5D,OAAO,cAAc,MAAM,mEAAmE,CAAC;AAC/F,OAAO,YAAY,MAAM,uDAAuD,CAAC;AACjF,OAAO,KAAK,MAAM,gDAAgD,CAAC;AAEnE,MAAM,CAAC,OAAO,gBAAO,SAAQ,IAAI;IAK7B,KAAK,CAAC,GAAG;QAEL,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAE,GAAG,IAAI,CAAC,SAAkB,CAAC;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QAEnC,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;QACvG,OAAO,aAAC,YAAY;YAChB;gBAAM,uDAAuC,CAAO;YACpD;gBACI,uDAEI;gBACJ;;oBACqB,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC;wBAClC,CACN,CACI,CAAC;IACpB,CAAC;CACJ;AArBG;IADC,MAAM;8BACE,cAAc;0CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/wwwroot/routes/pg-i/phone-pe/create/index.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,MAAM,MAAM,4CAA4C,CAAC;AAChE,OAAO,IAAI,MAAM,0CAA0C,CAAC;AAC5D,OAAO,cAAc,MAAM,mEAAmE,CAAC;AAC/F,OAAO,YAAY,MAAM,uDAAuD,CAAC;AACjF,OAAO,KAAK,MAAM,gDAAgD,CAAC;AACnE,OAAO,OAAO,MAAM,6CAA6C,CAAC;AAElE,MAAM,CAAC,OAAO,gBAAO,SAAQ,IAAI;IAK7B,KAAK,CAAC,GAAG;QAEL,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAE,GAAG,IAAI,CAAC,SAAkB,CAAC;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;QAEnC,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;QACvG,OAAO,OAAO,CAAC,IAAI,CAAC,aAAC,YAAY;YAC7B;gBAAM,uDAAuC,CAAO;YACpD;gBACI,uDAEI;gBACJ;;oBACqB,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC;wBAClC,CACN,CACI,CAAC,CAAC;IACrB,CAAC;CACJ;AArBG;IADC,MAAM;8BACE,cAAc;0CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.4.949",
3
+ "version": "1.4.950",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3,6 +3,7 @@ import Page from "@entity-access/server-pages/dist/Page.js";
3
3
  import PhonePeGateway from "../../../../../server/services/payment-gateways/PhonePeGateway.js";
4
4
  import HtmlDocument from "@entity-access/server-pages/dist/html/HtmlDocument.js";
5
5
  import XNode from "@entity-access/server-pages/dist/html/XNode.js";
6
+ import Content from "@entity-access/server-pages/dist/Content.js";
6
7
 
7
8
  export default class extends Page {
8
9
 
@@ -16,7 +17,7 @@ export default class extends Page {
16
17
  const host = this.request.hostName;
17
18
 
18
19
  const pr = await this.gateway.createPaymentLink({ itemID, currency, host, testMode: this.query.test });
19
- return <HtmlDocument>
20
+ return Content.html(<HtmlDocument>
20
21
  <head><title>Creating Payment Request</title></head>
21
22
  <body>
22
23
  <p>
@@ -26,7 +27,7 @@ export default class extends Page {
26
27
  location.href = {JSON.stringify(pr.url)};
27
28
  </script>
28
29
  </body>
29
- </HtmlDocument>;
30
+ </HtmlDocument>);
30
31
  }
31
32
  }
32
33