x25 17.6.1 → 17.6.3

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,3 +1,25 @@
1
- declare const SIDEWORK_APP_SIDENOTE_SMS = "smsalert", SIDEWORK_APP_INVOICES_SUBSCRIPTION = "facturare", SIDEWORK_APP_SIDENOTE_SUBSCRIPTION = "auto";
2
- export type SIDEWORK_APPLICATION = typeof SIDEWORK_APP_SIDENOTE_SMS | typeof SIDEWORK_APP_INVOICES_SUBSCRIPTION | typeof SIDEWORK_APP_SIDENOTE_SUBSCRIPTION;
3
- export { SIDEWORK_APP_INVOICES_SUBSCRIPTION, SIDEWORK_APP_SIDENOTE_SMS, SIDEWORK_APP_SIDENOTE_SUBSCRIPTION, };
1
+ /** Payment types for all sidework ecosystem */
2
+ export declare enum SIDEWORK_APPLICATION {
3
+ /**
4
+ * ApplicationCodeSMSAlert
5
+ * Example: smsalert-1000-3
6
+ * - credits: number of credits (e.g., 1000)
7
+ * - companyID: ID of the company (e.g., 3)
8
+ */
9
+ SMS_ALERT = "smsalert",
10
+ /**
11
+ * ApplicationCodeInvoiceService
12
+ * Example: facturare-2-76
13
+ * - months: number of months (e.g., 2)
14
+ * - companyID: ID of the company (e.g., 76)
15
+ */
16
+ INVOICES_SUBSCRIPTION = "facturare",
17
+ /**
18
+ * ApplicationCodeAutoService
19
+ * Example: auto-2-76
20
+ * - months: number of months (e.g., 2)
21
+ * - companyID: ID of the company (e.g., 76)
22
+ */
23
+ SIDENOTE_SUBSCRIPTION = "auto"
24
+ }
25
+ export default SIDEWORK_APPLICATION;
@@ -1,47 +1,32 @@
1
1
  "use strict";
2
+ /* eslint-disable no-shadow */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SIDEWORK_APP_SIDENOTE_SUBSCRIPTION = exports.SIDEWORK_APP_SIDENOTE_SMS = exports.SIDEWORK_APP_INVOICES_SUBSCRIPTION = void 0;
4
- /*
5
- // // ApplicationCodeSMSAlert ---
6
- // ApplicationCodeSMSAlert = "smsalert"
7
- // // DescriptionSMSAlert ---
8
- // // example smsalert-1000-3
9
- // // the nr. of credits is 1000
10
- // // the company id is 3
11
- // DescriptionSMSAlert = `
12
- // <br><br>
13
- // <b>smsalert</b><br>
14
- // arg1: <b>credits</b><br>
15
- // arg2: <b>companyID</b><br><br>
16
- */
17
- const SIDEWORK_APP_SIDENOTE_SMS = "smsalert",
18
- /*
19
- // // ApplicationCodeInvoiceService ---
20
- // ApplicationCodeInvoiceService = "facturare"
21
- // // DescriptionInvoiceService ---
22
- // // example facturare-2-76
23
- // // the nr. of months is 2
24
- // // the company id is 76
25
- // DescriptionInvoiceService = `
26
- // <b>facturare</b><br>
27
- // arg1: <b>months</b><br>
28
- // arg2: <b>companyID</b><br><br>
29
- */
30
- SIDEWORK_APP_INVOICES_SUBSCRIPTION = "facturare",
31
- /*
32
- // // ApplicationCodeAutoService ---
33
- // ApplicationCodeAutoService = "auto"
34
- // // DescriptionInvoiceService ---
35
- // // example facturare-2-76
36
- // // the nr. of months is 2
37
- // // the company id is 76
38
- // DescriptionAutoService = `
39
- // <b>auto</b><br>
40
- // arg1: <b>months</b><br>
41
- // arg2: <b>companyID</b><br><br>
42
- */
43
- SIDEWORK_APP_SIDENOTE_SUBSCRIPTION = "auto";
44
- exports.SIDEWORK_APP_SIDENOTE_SMS = SIDEWORK_APP_SIDENOTE_SMS;
45
- exports.SIDEWORK_APP_INVOICES_SUBSCRIPTION = SIDEWORK_APP_INVOICES_SUBSCRIPTION;
46
- exports.SIDEWORK_APP_SIDENOTE_SUBSCRIPTION = SIDEWORK_APP_SIDENOTE_SUBSCRIPTION;
4
+ exports.SIDEWORK_APPLICATION = void 0;
5
+ /** Payment types for all sidework ecosystem */
6
+ var SIDEWORK_APPLICATION;
7
+ (function (SIDEWORK_APPLICATION) {
8
+ /**
9
+ * ApplicationCodeSMSAlert
10
+ * Example: smsalert-1000-3
11
+ * - credits: number of credits (e.g., 1000)
12
+ * - companyID: ID of the company (e.g., 3)
13
+ */
14
+ SIDEWORK_APPLICATION["SMS_ALERT"] = "smsalert";
15
+ /**
16
+ * ApplicationCodeInvoiceService
17
+ * Example: facturare-2-76
18
+ * - months: number of months (e.g., 2)
19
+ * - companyID: ID of the company (e.g., 76)
20
+ */
21
+ SIDEWORK_APPLICATION["INVOICES_SUBSCRIPTION"] = "facturare";
22
+ /**
23
+ * ApplicationCodeAutoService
24
+ * Example: auto-2-76
25
+ * - months: number of months (e.g., 2)
26
+ * - companyID: ID of the company (e.g., 76)
27
+ */
28
+ SIDEWORK_APPLICATION["SIDENOTE_SUBSCRIPTION"] = "auto";
29
+ })(SIDEWORK_APPLICATION || (exports.SIDEWORK_APPLICATION = SIDEWORK_APPLICATION = {}));
30
+ // Usage example
31
+ exports.default = SIDEWORK_APPLICATION;
47
32
  //# sourceMappingURL=codes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"codes.js","sourceRoot":"","sources":["../../../src/Payment/core/codes.ts"],"names":[],"mappings":";;;AACA;;;;;;;;;;;;EAYE;AACF,MAAM,yBAAyB,GAAG,UAAU;AAE1C;;;;;;;;;;;EAWA;AACA,kCAAkC,GAAG,WAAW;AAEhD;;;;;;;;;;;EAWA;AACA,kCAAkC,GAAG,MAAM,CAAC;AAQ5C,8DAAyB;AADzB,gFAAkC;AAElC,gFAAkC"}
1
+ {"version":3,"file":"codes.js","sourceRoot":"","sources":["../../../src/Payment/core/codes.ts"],"names":[],"mappings":";AAAA,8BAA8B;;;AAE9B,gDAAgD;AAChD,IAAY,oBAwBX;AAxBD,WAAY,oBAAoB;IAC9B;;;;;OAKG;IACH,8CAAsB,CAAA;IAEtB;;;;;OAKG;IACH,2DAAmC,CAAA;IAEnC;;;;;OAKG;IACH,sDAA8B,CAAA;AAChC,CAAC,EAxBW,oBAAoB,oCAApB,oBAAoB,QAwB/B;AAED,gBAAgB;AAChB,kBAAe,oBAAoB,CAAC"}
@@ -1,41 +1,21 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
4
  };
25
5
  Object.defineProperty(exports, "__esModule", { value: true });
26
6
  exports.getDetails = void 0;
27
- const codes = __importStar(require("../codes"));
7
+ const codes_1 = __importDefault(require("../codes"));
28
8
  const getDetails = (application, data) => {
29
9
  const getParams = () => {
30
10
  const { Credits, Months, companyID } = data;
31
11
  switch (application) {
32
- case codes.SIDEWORK_APP_SIDENOTE_SMS:
12
+ case codes_1.default.SMS_ALERT:
33
13
  return [
34
14
  Credits,
35
15
  companyID,
36
16
  ];
37
- case codes.SIDEWORK_APP_SIDENOTE_SUBSCRIPTION:
38
- case codes.SIDEWORK_APP_INVOICES_SUBSCRIPTION:
17
+ case codes_1.default.SIDENOTE_SUBSCRIPTION:
18
+ case codes_1.default.INVOICES_SUBSCRIPTION:
39
19
  return [
40
20
  Months,
41
21
  companyID,
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/Payment/core/util/util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,gDAAkC;AAGlC,MAAM,UAAU,GAAG,CAAC,WAAkC,EAAE,IAAe,EAAE,EAAE;IAEzE,MAAM,SAAS,GAAG,GAAG,EAAE;QACrB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QAE5C,QAAQ,WAAW,EAAE,CAAC;YACpB,KAAK,KAAK,CAAC,yBAAyB;gBAElC,OAAO;oBACL,OAAO;oBACP,SAAS;iBACV,CAAC;YAEJ,KAAK,KAAK,CAAC,kCAAkC,CAAC;YAC9C,KAAK,KAAK,CAAC,kCAAkC;gBAC3C,OAAO;oBACL,MAAM;oBACN,SAAS;iBACV,CAAC;YAEJ;gBACE,OAAO,EAAE,CAAC;QACd,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,GAAG,WAAW,IAAI,SAAS,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AACnD,CAAC,CAAC;AAGA,gCAAU"}
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/Payment/core/util/util.ts"],"names":[],"mappings":";;;;;;AAOA,qDAAuD;AAEvD,MAAM,UAAU,GAAG,CAAC,WAAkC,EAAE,IAAe,EAAE,EAAE;IAEzE,MAAM,SAAS,GAAG,GAAG,EAAE;QACrB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QAE5C,QAAQ,WAAW,EAAE,CAAC;YACpB,KAAK,eAAK,CAAC,SAAS;gBAElB,OAAO;oBACL,OAAO;oBACP,SAAS;iBACV,CAAC;YAEJ,KAAK,eAAK,CAAC,qBAAqB,CAAC;YACjC,KAAK,eAAK,CAAC,qBAAqB;gBAC9B,OAAO;oBACL,MAAM;oBACN,SAAS;iBACV,CAAC;YAEJ;gBACE,OAAO,EAAE,CAAC;QACd,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,GAAG,WAAW,IAAI,SAAS,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;AACnD,CAAC,CAAC;AAGA,gCAAU"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { default as PAYMENT_APP_CODES } from "./core/codes";
3
+ declare const paymentUtils: {
4
+ PAYMENT_APP_CODES: typeof PAYMENT_APP_CODES;
5
+ paymentModal: {
6
+ PAYMENT_BANK_TRANSFER: (props: {
7
+ readonly application: PAYMENT_APP_CODES;
8
+ readonly options: any;
9
+ readonly info: any;
10
+ }) => import("react").JSX.Element;
11
+ PAYMENT_WAS_DONE: () => import("react").JSX.Element;
12
+ };
13
+ };
14
+ export default paymentUtils;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const codes_1 = __importDefault(require("./core/codes"));
7
+ const Modal_1 = __importDefault(require("./Modal"));
8
+ const paymentUtils = {
9
+ PAYMENT_APP_CODES: codes_1.default,
10
+ paymentModal: Modal_1.default,
11
+ };
12
+ exports.default = paymentUtils;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Payment/index.ts"],"names":[],"mappings":";;;;;AAAA,yDAA4D;AAC5D,oDAAoC;AAEpC,MAAM,YAAY,GAAG;IACnB,iBAAiB,EAAjB,eAAiB;IACjB,YAAY,EAAE,eAAa;CAC5B,CAAC;AAEF,kBAAe,YAAY,CAAC"}
package/index.d.ts CHANGED
@@ -3,3 +3,5 @@ export { default as JSONSyntaxFromData } from "./Developer/JSONSyntaxFromData";
3
3
  export { default as JSONSyntaxFromText } from "./Developer/JSONSyntaxFromText";
4
4
  export { default as normalize } from "./utility/normalize";
5
5
  export { default as words } from "./utility/words";
6
+ export { default as paymentUtils } from "./Payment/index";
7
+ export { default as Payment } from "./Payment/Pieces/Payment";
package/index.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.words = exports.normalize = exports.JSONSyntaxFromText = exports.JSONSyntaxFromData = exports.NewFeature = void 0;
6
+ exports.Payment = exports.paymentUtils = exports.words = exports.normalize = exports.JSONSyntaxFromText = exports.JSONSyntaxFromData = exports.NewFeature = void 0;
7
7
  // UI
8
8
  var NewFeature_1 = require("./UI/NewFeature");
9
9
  Object.defineProperty(exports, "NewFeature", { enumerable: true, get: function () { return __importDefault(NewFeature_1).default; } });
@@ -17,4 +17,9 @@ var normalize_1 = require("./utility/normalize");
17
17
  Object.defineProperty(exports, "normalize", { enumerable: true, get: function () { return __importDefault(normalize_1).default; } });
18
18
  var words_1 = require("./utility/words");
19
19
  Object.defineProperty(exports, "words", { enumerable: true, get: function () { return __importDefault(words_1).default; } });
20
+ // Payment
21
+ var index_1 = require("./Payment/index");
22
+ Object.defineProperty(exports, "paymentUtils", { enumerable: true, get: function () { return __importDefault(index_1).default; } });
23
+ var Payment_1 = require("./Payment/Pieces/Payment");
24
+ Object.defineProperty(exports, "Payment", { enumerable: true, get: function () { return __importDefault(Payment_1).default; } });
20
25
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAEA,MAAM;AACN,8CAAwD;AAA/C,yHAAA,OAAO,OAAc;AAE9B,aAAa;AACb,qEAA+E;AAAtE,yIAAA,OAAO,OAAsB;AACtC,qEAA+E;AAAtE,yIAAA,OAAO,OAAsB;AAEtC,UAAU;AACV,iDAA2D;AAAlD,uHAAA,OAAO,OAAa;AAC7B,yCAAmD;AAA1C,+GAAA,OAAO,OAAS"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAEA,MAAM;AACN,8CAAwD;AAA/C,yHAAA,OAAO,OAAc;AAE9B,aAAa;AACb,qEAA+E;AAAtE,yIAAA,OAAO,OAAsB;AACtC,qEAA+E;AAAtE,yIAAA,OAAO,OAAsB;AAEtC,UAAU;AACV,iDAA2D;AAAlD,uHAAA,OAAO,OAAa;AAC7B,yCAAmD;AAA1C,+GAAA,OAAO,OAAS;AAEzB,WAAW;AACX,yCAA0D;AAAjD,sHAAA,OAAO,OAAgB;AAChC,oDAA8D;AAArD,mHAAA,OAAO,OAAW"}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "17.6.1",
2
+ "version": "17.6.3",
3
3
  "name": "x25",
4
4
  "description": "x25",
5
5
  "types": "./dist/index.d.ts",