update license structures and init to setup image uploader
This commit is contained in:
+2
-3
@@ -1,12 +1,11 @@
|
||||
export interface IPartnerLicenseRawResponse {
|
||||
export interface IPartnerActivatedLicenseRawResponse {
|
||||
id: string;
|
||||
starts_at: string;
|
||||
expires_at: string;
|
||||
status: TLicenseStatus;
|
||||
consumer: {
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
mobile_number: string;
|
||||
};
|
||||
}
|
||||
export interface IPartnerLicenseResponse extends IPartnerLicenseRawResponse {}
|
||||
export interface IPartnerActivatedLicenseResponse extends IPartnerActivatedLicenseRawResponse {}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
export interface IPartnerChargeLicenseTransactionRawResponse {
|
||||
id: string;
|
||||
created_at: string;
|
||||
activation_expires_at: string;
|
||||
charged_license_count: number;
|
||||
remained_license_count: number;
|
||||
}
|
||||
export interface IPartnerChargeLicenseTransactionResponse extends IPartnerChargeLicenseTransactionRawResponse {}
|
||||
|
||||
export interface IPartnerChargeLicenseTransactionRequest {
|
||||
quantity: number;
|
||||
activated_expires_at: string;
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from './accounts_io';
|
||||
export * from './activatedLicenses_io';
|
||||
export * from './chargeLicenseTransactions_io';
|
||||
export * from './io';
|
||||
export * from './licenses_io';
|
||||
|
||||
+7
-10
@@ -2,8 +2,13 @@ export interface IPartnerRawResponse {
|
||||
id: string;
|
||||
name: string;
|
||||
code: string;
|
||||
remained_license: number;
|
||||
license_quota: number;
|
||||
status: string;
|
||||
created_at: string;
|
||||
licenses_status: {
|
||||
total: number;
|
||||
used: number;
|
||||
expired: number;
|
||||
};
|
||||
}
|
||||
export interface IPartnerResponse extends IPartnerRawResponse {}
|
||||
|
||||
@@ -12,11 +17,3 @@ export interface IPartnerRequest {
|
||||
code: string;
|
||||
license_quota: number;
|
||||
}
|
||||
|
||||
//charge license
|
||||
export interface ILicenseChargeRawResponse {}
|
||||
export interface ILicenseChargeResponse extends ILicenseChargeRawResponse {}
|
||||
|
||||
export interface ILicenseChargeRequest {
|
||||
count: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user