x25 17.6.2 → 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,8 +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
- declare const _default: {
4
- SIDEWORK_APP_INVOICES_SUBSCRIPTION: string;
5
- SIDEWORK_APP_SIDENOTE_SMS: string;
6
- SIDEWORK_APP_SIDENOTE_SUBSCRIPTION: string;
7
- };
8
- export default _default;
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,48 +1,32 @@
1
1
  "use strict";
2
+ /* eslint-disable no-shadow */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
- /*
4
- // // ApplicationCodeSMSAlert ---
5
- // ApplicationCodeSMSAlert = "smsalert"
6
- // // DescriptionSMSAlert ---
7
- // // example smsalert-1000-3
8
- // // the nr. of credits is 1000
9
- // // the company id is 3
10
- // DescriptionSMSAlert = `
11
- // <br><br>
12
- // <b>smsalert</b><br>
13
- // arg1: <b>credits</b><br>
14
- // arg2: <b>companyID</b><br><br>
15
- */
16
- const SIDEWORK_APP_SIDENOTE_SMS = "smsalert",
17
- /*
18
- // // ApplicationCodeInvoiceService ---
19
- // ApplicationCodeInvoiceService = "facturare"
20
- // // DescriptionInvoiceService ---
21
- // // example facturare-2-76
22
- // // the nr. of months is 2
23
- // // the company id is 76
24
- // DescriptionInvoiceService = `
25
- // <b>facturare</b><br>
26
- // arg1: <b>months</b><br>
27
- // arg2: <b>companyID</b><br><br>
28
- */
29
- SIDEWORK_APP_INVOICES_SUBSCRIPTION = "facturare",
30
- /*
31
- // // ApplicationCodeAutoService ---
32
- // ApplicationCodeAutoService = "auto"
33
- // // DescriptionInvoiceService ---
34
- // // example facturare-2-76
35
- // // the nr. of months is 2
36
- // // the company id is 76
37
- // DescriptionAutoService = `
38
- // <b>auto</b><br>
39
- // arg1: <b>months</b><br>
40
- // arg2: <b>companyID</b><br><br>
41
- */
42
- SIDEWORK_APP_SIDENOTE_SUBSCRIPTION = "auto";
43
- exports.default = {
44
- SIDEWORK_APP_INVOICES_SUBSCRIPTION,
45
- SIDEWORK_APP_SIDENOTE_SMS,
46
- SIDEWORK_APP_SIDENOTE_SUBSCRIPTION,
47
- };
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;
48
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;AAM9C,kBAAe;IACb,kCAAkC;IAClC,yBAAyB;IACzB,kCAAkC;CACnC,CAAC"}
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"}
@@ -9,13 +9,13 @@ const getDetails = (application, data) => {
9
9
  const getParams = () => {
10
10
  const { Credits, Months, companyID } = data;
11
11
  switch (application) {
12
- case codes_1.default.SIDEWORK_APP_SIDENOTE_SMS:
12
+ case codes_1.default.SMS_ALERT:
13
13
  return [
14
14
  Credits,
15
15
  companyID,
16
16
  ];
17
- case codes_1.default.SIDEWORK_APP_SIDENOTE_SUBSCRIPTION:
18
- case codes_1.default.SIDEWORK_APP_INVOICES_SUBSCRIPTION:
17
+ case codes_1.default.SIDENOTE_SUBSCRIPTION:
18
+ case codes_1.default.INVOICES_SUBSCRIPTION:
19
19
  return [
20
20
  Months,
21
21
  companyID,
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../../src/Payment/core/util/util.ts"],"names":[],"mappings":";;;;;;AAQA,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,yBAAyB;gBAElC,OAAO;oBACL,OAAO;oBACP,SAAS;iBACV,CAAC;YAEJ,KAAK,eAAK,CAAC,kCAAkC,CAAC;YAC9C,KAAK,eAAK,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"}
@@ -1,13 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import { default as PAYMENT_APP_CODES } from "./core/codes";
2
3
  declare const paymentUtils: {
3
- PAYMENT_APP_CODES: {
4
- SIDEWORK_APP_INVOICES_SUBSCRIPTION: string;
5
- SIDEWORK_APP_SIDENOTE_SMS: string;
6
- SIDEWORK_APP_SIDENOTE_SUBSCRIPTION: string;
7
- };
4
+ PAYMENT_APP_CODES: typeof PAYMENT_APP_CODES;
8
5
  paymentModal: {
9
6
  PAYMENT_BANK_TRANSFER: (props: {
10
- readonly application: import("./core/codes").SIDEWORK_APPLICATION;
7
+ readonly application: PAYMENT_APP_CODES;
11
8
  readonly options: any;
12
9
  readonly info: any;
13
10
  }) => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "17.6.2",
2
+ "version": "17.6.3",
3
3
  "name": "x25",
4
4
  "description": "x25",
5
5
  "types": "./dist/index.d.ts",