@rtsee/common 0.0.49 → 0.0.51

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 (26) hide show
  1. package/dist/common/src/interfaces/index.d.ts +1 -0
  2. package/dist/common/src/interfaces/index.d.ts.map +1 -1
  3. package/dist/common/src/interfaces/index.js +1 -0
  4. package/dist/common/src/interfaces/index.js.map +1 -1
  5. package/dist/common/src/interfaces/messenger/Chat.d.ts.map +1 -1
  6. package/dist/common/src/interfaces/payments/Configuration.d.ts +12 -0
  7. package/dist/common/src/interfaces/payments/Configuration.d.ts.map +1 -0
  8. package/dist/common/src/interfaces/payments/Configuration.js +3 -0
  9. package/dist/common/src/interfaces/payments/Configuration.js.map +1 -0
  10. package/dist/common/src/interfaces/payments/PaymentSession.d.ts +25 -0
  11. package/dist/common/src/interfaces/payments/PaymentSession.d.ts.map +1 -0
  12. package/dist/common/src/interfaces/payments/PaymentSession.js +3 -0
  13. package/dist/common/src/interfaces/payments/PaymentSession.js.map +1 -0
  14. package/dist/common/src/interfaces/payments/Price.d.ts +18 -0
  15. package/dist/common/src/interfaces/payments/Price.d.ts.map +1 -0
  16. package/dist/common/src/interfaces/payments/Price.js +3 -0
  17. package/dist/common/src/interfaces/payments/Price.js.map +1 -0
  18. package/dist/common/src/interfaces/payments/Product.d.ts +18 -0
  19. package/dist/common/src/interfaces/payments/Product.d.ts.map +1 -0
  20. package/dist/common/src/interfaces/payments/Product.js +3 -0
  21. package/dist/common/src/interfaces/payments/Product.js.map +1 -0
  22. package/dist/common/src/interfaces/payments/index.d.ts +5 -0
  23. package/dist/common/src/interfaces/payments/index.d.ts.map +1 -0
  24. package/dist/common/src/interfaces/payments/index.js +21 -0
  25. package/dist/common/src/interfaces/payments/index.js.map +1 -0
  26. package/package.json +2 -2
@@ -3,4 +3,5 @@ export * from "./events-manager";
3
3
  export * from "./conference";
4
4
  export * from "./presentation";
5
5
  export * from "./file-vault";
6
+ export * from './payments';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
@@ -19,4 +19,5 @@ __exportStar(require("./events-manager"), exports);
19
19
  __exportStar(require("./conference"), exports);
20
20
  __exportStar(require("./presentation"), exports);
21
21
  __exportStar(require("./file-vault"), exports);
22
+ __exportStar(require("./payments"), exports);
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC;AACjC,+CAA6B;AAC7B,iDAA+B;AAC/B,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAiC;AACjC,+CAA6B;AAC7B,iDAA+B;AAC/B,+CAA6B;AAC7B,6CAA2B"}
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/messenger/Chat.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,cAAc,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cA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AAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAaD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,8BAA8B,CAAC;IACjD,OAAO,EAAE,oBAAoB,CAAC;IAC9B,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
@@ -0,0 +1,12 @@
1
+ export interface IRTSeePaymentsConfiguration {
2
+ appId: string;
3
+ publicKey: string;
4
+ secretKey: string;
5
+ baseUiUrl?: string;
6
+ baseApiUrl?: string;
7
+ createSessionPath?: string;
8
+ getSessionPath?: string;
9
+ productsPath?: string;
10
+ unsubscribePath?: string;
11
+ }
12
+ //# sourceMappingURL=Configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/payments/Configuration.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Configuration.js","sourceRoot":"","sources":["../../../../../src/interfaces/payments/Configuration.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ export interface IRTSeeCreatePaymentSessionRequest {
2
+ priceId: string;
3
+ userId: string;
4
+ route: string;
5
+ applicationId: string;
6
+ }
7
+ export interface IRTSeeCreatePaymentSessionResponse {
8
+ clientSecret: string;
9
+ }
10
+ export interface IRTSeePaymentPlanInfo {
11
+ subscriptionId: string;
12
+ priceId: string;
13
+ productId: string;
14
+ isActive: boolean;
15
+ payedAmount: number;
16
+ activeFrom: Date;
17
+ activeTo: Date;
18
+ }
19
+ export interface IRTSeePaymentStatus {
20
+ status: 'complete' | 'expired' | 'open' | 'unavailable';
21
+ customerEmail: string;
22
+ customerId: string;
23
+ paymentPlan: IRTSeePaymentPlanInfo;
24
+ }
25
+ //# sourceMappingURL=PaymentSession.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentSession.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/payments/PaymentSession.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,kCAAkC;IACjD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,IAAI,CAAC;IACjB,QAAQ,EAAE,IAAI,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,aAAa,CAAC;IACxD,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,qBAAqB,CAAC;CACpC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=PaymentSession.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentSession.js","sourceRoot":"","sources":["../../../../../src/interfaces/payments/PaymentSession.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ export interface IRTSeePaymentPriceItem {
2
+ id: string;
3
+ priceId: string;
4
+ applicationId: string;
5
+ productId: string;
6
+ label: string;
7
+ description: string;
8
+ }
9
+ export interface IRTSeeCreatePriceItemRequest {
10
+ item: Omit<IRTSeePaymentPriceItem, 'id'>;
11
+ }
12
+ export interface IRTSeePriceItemResponse {
13
+ item: IRTSeePaymentPriceItem;
14
+ }
15
+ export interface IRTSeePricesListResponse {
16
+ items: IRTSeePaymentPriceItem[];
17
+ }
18
+ //# sourceMappingURL=Price.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Price.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/payments/Price.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,IAAI,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,sBAAsB,CAAC;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,sBAAsB,EAAE,CAAC;CACjC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Price.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../../../src/interfaces/payments/Price.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { IRTSeePaymentPriceItem } from "@rtsee/common";
2
+ export interface IRTSeePaymentProduct {
3
+ id: string;
4
+ applicationId: string;
5
+ name: string;
6
+ description: string;
7
+ prices?: IRTSeePaymentPriceItem[];
8
+ }
9
+ export interface IRTSeeCreatePaymentProductRequest {
10
+ product: Omit<IRTSeePaymentProduct, 'id'>;
11
+ }
12
+ export interface IRTSeePaymentProductResponse {
13
+ product: IRTSeePaymentProduct;
14
+ }
15
+ export interface IRTSeePaymentProductsListResponse {
16
+ products: IRTSeePaymentProduct[];
17
+ }
18
+ //# sourceMappingURL=Product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/payments/Product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAC;AAErD,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,oBAAoB,CAAC;CAC/B;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,EAAE,oBAAoB,EAAE,CAAC;CAClC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Product.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../../src/interfaces/payments/Product.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from './PaymentSession';
2
+ export * from './Price';
3
+ export * from './Configuration';
4
+ export * from './Product';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/payments/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
@@ -0,0 +1,21 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PaymentSession"), exports);
18
+ __exportStar(require("./Price"), exports);
19
+ __exportStar(require("./Configuration"), exports);
20
+ __exportStar(require("./Product"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interfaces/payments/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,0CAAwB;AACxB,kDAAgC;AAChC,4CAA0B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtsee/common",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "license": "ISC",
5
5
  "private": false,
6
6
  "main": "dist/common/src/index",
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "5421f401d4a962b6f19d37727f3cb834f7cc4166"
34
+ "gitHead": "987226a7d8a6036985835f65b78ce38b4601e495"
35
35
  }