@spytecgps/nova-orm 0.0.92 → 0.0.94
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/entities/index.d.ts +3 -1
- package/dist/entities/magento2Gps.d.ts +50 -0
- package/dist/entities/magento2Plan.d.ts +6 -0
- package/dist/index.js +1 -1
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.d.ts +4 -0
- package/dist/repositories/billing/getMagentoPlan.d.ts +5 -0
- package/dist/repositories/billing/index.d.ts +22 -2
- package/dist/types/billing.d.ts +7 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { CanceledImeiResult, GetCanceledImeisParams } from '../../types/billing';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
export declare const getCanceledImeisMatchingMagentoData: (novaDataSource: NovaDataSource, params: GetCanceledImeisParams, logger: Logger) => Promise<CanceledImeiResult[]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Magento2Plan } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { GetMagentoPlanParams } from '../../types/billing';
|
|
4
|
+
import { Logger } from '../../types/logger';
|
|
5
|
+
export declare const getMagentoPlan: (novaDataSource: NovaDataSource, params: GetMagentoPlanParams, logger: Logger) => Promise<Magento2Plan>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingStatusHistoryBraintree, BillingSubscriptionBraintree, User } from '../../entities';
|
|
2
|
-
import { BillingSubscriptionChurnStatus, CanceledImeiResult, CreateBillingDeviceHistoryParams, CreateBillingParams, CreateBillingStatusHistoryBraintreeParams, GetBillingCustomerBraintreeByIdParams, GetBillingsParams, GetBillingSubscriptionsBraintreeParams, GetCanceledImeisParams, GetChurnStatusByClientIdParams, GetClientIdFromBraintreeCustomerParams, GetUserByBraintreeCustomerIdParams, UpdateBillingCustomerBraintreeParams, UpdateBillingParams, UpsertBillingCustomerBraintreeParams, UpsertBillingSubscriptionBraintreeParams } from '../../types/billing';
|
|
1
|
+
import { Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingStatusHistoryBraintree, BillingSubscriptionBraintree, Magento2Plan, User } from '../../entities';
|
|
2
|
+
import { BillingSubscriptionChurnStatus, CanceledImeiResult, CreateBillingDeviceHistoryParams, CreateBillingParams, CreateBillingStatusHistoryBraintreeParams, GetBillingCustomerBraintreeByIdParams, GetBillingsParams, GetBillingSubscriptionsBraintreeParams, GetCanceledImeisParams, GetChurnStatusByClientIdParams, GetClientIdFromBraintreeCustomerParams, GetMagentoPlanParams, GetUserByBraintreeCustomerIdParams, UpdateBillingCustomerBraintreeParams, UpdateBillingParams, UpsertBillingCustomerBraintreeParams, UpsertBillingSubscriptionBraintreeParams } from '../../types/billing';
|
|
3
3
|
import { BaseRepository } from '../baseRepository';
|
|
4
4
|
export declare class BillingRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -152,4 +152,24 @@ export declare class BillingRepository extends BaseRepository {
|
|
|
152
152
|
* @returns The list of canceled imeis
|
|
153
153
|
*/
|
|
154
154
|
getCanceledImeis(params: GetCanceledImeisParams): Promise<CanceledImeiResult[]>;
|
|
155
|
+
/**
|
|
156
|
+
* Get canceled imei matching magento data
|
|
157
|
+
* @param {GetCanceledImeisParams} params containing information to get canceled imeis matching magento data
|
|
158
|
+
* - params.filters.minCancellationDate: The min cancellation date
|
|
159
|
+
* - params.filters.maxCancellationDate: The max cancellation date
|
|
160
|
+
* - params.filters.canceledIn: which canceled status to check by ('carrier', 'device' or 'both')
|
|
161
|
+
* - params.filters.excludeB2B: whether to exclude devices from B2B clients
|
|
162
|
+
* - params.filters.excludeTest: whether to exclude devices from test clients
|
|
163
|
+
* - params.pagingOptions.pageSize: max elements to return
|
|
164
|
+
* @returns The list of canceled imeis
|
|
165
|
+
*/
|
|
166
|
+
getCanceledImeisMatchingMagentoData(params: GetCanceledImeisParams): Promise<CanceledImeiResult[]>;
|
|
167
|
+
/**
|
|
168
|
+
* Get magento plan
|
|
169
|
+
* @param {GetMagentoPlanParams} params containing information to get magento plan
|
|
170
|
+
* - params.filters.annual: Whether the plan is annual
|
|
171
|
+
* - params.filters.code: The plan code
|
|
172
|
+
* @returns The magento plan
|
|
173
|
+
*/
|
|
174
|
+
getMagentoPlan(params: GetMagentoPlanParams): Promise<Magento2Plan>;
|
|
155
175
|
}
|
package/dist/types/billing.d.ts
CHANGED
|
@@ -168,6 +168,12 @@ export interface CanceledImeiResult {
|
|
|
168
168
|
subscriptionId: string;
|
|
169
169
|
createdAt: Date;
|
|
170
170
|
updatedAt: string;
|
|
171
|
-
|
|
171
|
+
status: string;
|
|
172
172
|
carrier: string;
|
|
173
173
|
}
|
|
174
|
+
export interface GetMagentoPlanParams {
|
|
175
|
+
filters: {
|
|
176
|
+
annual: boolean;
|
|
177
|
+
code: string;
|
|
178
|
+
};
|
|
179
|
+
}
|