@authenty/authapi-types 1.0.2 → 1.0.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.
- package/dist/general.d.ts +5 -26
- package/dist/general.js +1 -26
- package/package.json +1 -1
- package/src/general.ts +5 -28
package/dist/general.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PrivilegeTable } from "./admin";
|
|
2
|
+
import { PG_PurchaseLicenseStatus, PG_PurchasePaymentStatus, PG_PurchaseType } from "./payment-system";
|
|
2
3
|
export declare enum BundleType {
|
|
3
4
|
BUNDLE = 0,
|
|
4
5
|
SYMBOLIC_PRODUCT = 1,
|
|
@@ -86,7 +87,7 @@ export type Consultancy = {
|
|
|
86
87
|
};
|
|
87
88
|
export type Bundle = {
|
|
88
89
|
id: number;
|
|
89
|
-
type:
|
|
90
|
+
type: BundleType;
|
|
90
91
|
title?: string;
|
|
91
92
|
short?: string;
|
|
92
93
|
resume?: string;
|
|
@@ -134,35 +135,13 @@ export type PaymentMethod = {
|
|
|
134
135
|
gatewayID: number;
|
|
135
136
|
Bundle?: Bundle;
|
|
136
137
|
};
|
|
137
|
-
export declare enum PurchaseStatus {
|
|
138
|
-
NORMAL = 0,
|
|
139
|
-
EXPIRED = 1,
|
|
140
|
-
CANCELED = 2,
|
|
141
|
-
OPEN = 3,
|
|
142
|
-
RECYCLING = 4,
|
|
143
|
-
PAYED = 5,
|
|
144
|
-
ACTIVE = 6
|
|
145
|
-
}
|
|
146
|
-
export declare enum PurchaseCycle {
|
|
147
|
-
UNKNOWN = 0,
|
|
148
|
-
ACTIVE = 1,
|
|
149
|
-
CANCELED = 2,
|
|
150
|
-
REFUNDED = 3,
|
|
151
|
-
REMOVED = 4,
|
|
152
|
-
Nonrefundable = 5
|
|
153
|
-
}
|
|
154
|
-
export declare enum PurchaseTypeStep {
|
|
155
|
-
SESSION = 0,
|
|
156
|
-
PAYMENT = 1,
|
|
157
|
-
SUBSCRIPTION = 2
|
|
158
|
-
}
|
|
159
138
|
export type Purchase = {
|
|
160
139
|
paghash: string;
|
|
161
140
|
id: number;
|
|
162
141
|
price: number;
|
|
163
|
-
licenseStatus:
|
|
164
|
-
paymentStatus:
|
|
165
|
-
type_step:
|
|
142
|
+
licenseStatus: PG_PurchaseLicenseStatus;
|
|
143
|
+
paymentStatus: PG_PurchasePaymentStatus;
|
|
144
|
+
type_step: PG_PurchaseType;
|
|
166
145
|
PaymentMethod: PaymentMethod;
|
|
167
146
|
Wallet?: Wallet;
|
|
168
147
|
walletID: number;
|
package/dist/general.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BundleType = void 0;
|
|
4
4
|
var BundleType;
|
|
5
5
|
(function (BundleType) {
|
|
6
6
|
BundleType[BundleType["BUNDLE"] = 0] = "BUNDLE";
|
|
@@ -8,28 +8,3 @@ var BundleType;
|
|
|
8
8
|
BundleType[BundleType["SYMBOLIC_COURSE"] = 2] = "SYMBOLIC_COURSE";
|
|
9
9
|
BundleType[BundleType["SYMBOLIC_CONSULTANCY"] = 3] = "SYMBOLIC_CONSULTANCY";
|
|
10
10
|
})(BundleType || (exports.BundleType = BundleType = {}));
|
|
11
|
-
var PurchaseStatus;
|
|
12
|
-
(function (PurchaseStatus) {
|
|
13
|
-
PurchaseStatus[PurchaseStatus["NORMAL"] = 0] = "NORMAL";
|
|
14
|
-
PurchaseStatus[PurchaseStatus["EXPIRED"] = 1] = "EXPIRED";
|
|
15
|
-
PurchaseStatus[PurchaseStatus["CANCELED"] = 2] = "CANCELED";
|
|
16
|
-
PurchaseStatus[PurchaseStatus["OPEN"] = 3] = "OPEN";
|
|
17
|
-
PurchaseStatus[PurchaseStatus["RECYCLING"] = 4] = "RECYCLING";
|
|
18
|
-
PurchaseStatus[PurchaseStatus["PAYED"] = 5] = "PAYED";
|
|
19
|
-
PurchaseStatus[PurchaseStatus["ACTIVE"] = 6] = "ACTIVE";
|
|
20
|
-
})(PurchaseStatus || (exports.PurchaseStatus = PurchaseStatus = {}));
|
|
21
|
-
var PurchaseCycle;
|
|
22
|
-
(function (PurchaseCycle) {
|
|
23
|
-
PurchaseCycle[PurchaseCycle["UNKNOWN"] = 0] = "UNKNOWN";
|
|
24
|
-
PurchaseCycle[PurchaseCycle["ACTIVE"] = 1] = "ACTIVE";
|
|
25
|
-
PurchaseCycle[PurchaseCycle["CANCELED"] = 2] = "CANCELED";
|
|
26
|
-
PurchaseCycle[PurchaseCycle["REFUNDED"] = 3] = "REFUNDED";
|
|
27
|
-
PurchaseCycle[PurchaseCycle["REMOVED"] = 4] = "REMOVED";
|
|
28
|
-
PurchaseCycle[PurchaseCycle["Nonrefundable"] = 5] = "Nonrefundable";
|
|
29
|
-
})(PurchaseCycle || (exports.PurchaseCycle = PurchaseCycle = {}));
|
|
30
|
-
var PurchaseTypeStep;
|
|
31
|
-
(function (PurchaseTypeStep) {
|
|
32
|
-
PurchaseTypeStep[PurchaseTypeStep["SESSION"] = 0] = "SESSION";
|
|
33
|
-
PurchaseTypeStep[PurchaseTypeStep["PAYMENT"] = 1] = "PAYMENT";
|
|
34
|
-
PurchaseTypeStep[PurchaseTypeStep["SUBSCRIPTION"] = 2] = "SUBSCRIPTION";
|
|
35
|
-
})(PurchaseTypeStep || (exports.PurchaseTypeStep = PurchaseTypeStep = {}));
|
package/package.json
CHANGED
package/src/general.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PrivilegeTable } from "./admin";
|
|
2
|
+
import { PG_PurchaseLicenseStatus, PG_PurchasePaymentStatus, PG_PurchaseType } from "./payment-system";
|
|
2
3
|
|
|
3
4
|
export enum BundleType {
|
|
4
5
|
BUNDLE = 0,
|
|
@@ -92,7 +93,7 @@ export type Consultancy = {
|
|
|
92
93
|
|
|
93
94
|
export type Bundle = {
|
|
94
95
|
id: number;
|
|
95
|
-
type:
|
|
96
|
+
type: BundleType;
|
|
96
97
|
title?: string;
|
|
97
98
|
short?: string;
|
|
98
99
|
resume?: string;
|
|
@@ -142,36 +143,13 @@ export type PaymentMethod = {
|
|
|
142
143
|
Bundle?: Bundle;
|
|
143
144
|
}
|
|
144
145
|
|
|
145
|
-
export enum PurchaseStatus {
|
|
146
|
-
NORMAL = 0,
|
|
147
|
-
EXPIRED = 1,
|
|
148
|
-
CANCELED = 2,
|
|
149
|
-
OPEN = 3,
|
|
150
|
-
RECYCLING = 4,
|
|
151
|
-
PAYED = 5,
|
|
152
|
-
ACTIVE = 6
|
|
153
|
-
}
|
|
154
|
-
export enum PurchaseCycle {
|
|
155
|
-
UNKNOWN = 0,
|
|
156
|
-
ACTIVE = 1,
|
|
157
|
-
CANCELED = 2,
|
|
158
|
-
REFUNDED = 3,
|
|
159
|
-
REMOVED = 4,
|
|
160
|
-
Nonrefundable = 5
|
|
161
|
-
}
|
|
162
|
-
export enum PurchaseTypeStep {
|
|
163
|
-
SESSION = 0,
|
|
164
|
-
PAYMENT = 1,
|
|
165
|
-
SUBSCRIPTION = 2
|
|
166
|
-
}
|
|
167
|
-
|
|
168
146
|
export type Purchase = {
|
|
169
147
|
paghash: string;
|
|
170
148
|
id: number;
|
|
171
149
|
price: number;
|
|
172
|
-
licenseStatus:
|
|
173
|
-
paymentStatus:
|
|
174
|
-
type_step:
|
|
150
|
+
licenseStatus: PG_PurchaseLicenseStatus;
|
|
151
|
+
paymentStatus: PG_PurchasePaymentStatus,
|
|
152
|
+
type_step: PG_PurchaseType,
|
|
175
153
|
PaymentMethod: PaymentMethod;
|
|
176
154
|
Wallet?: Wallet;
|
|
177
155
|
walletID: number;
|
|
@@ -234,7 +212,6 @@ export type LocalUser = {
|
|
|
234
212
|
Sys_adminUser?: PrivilegeTable
|
|
235
213
|
}
|
|
236
214
|
|
|
237
|
-
|
|
238
215
|
// Tipos para logs do sistema
|
|
239
216
|
export type LogEntry = {
|
|
240
217
|
appId: string;
|