@spytecgps/nova-orm 1.3.20 → 1.3.22

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,5 +1,5 @@
1
- import { Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingDeviceTypePlan, BillingHubspotPaymentLog, BillingKlarnaCustomer, BillingKlarnaOrder, BillingPlans, BillingStatusHistoryBraintree, BillingSubscriptionBraintree, Magento2Plan, User } from '../../entities';
2
- import { BillingSubscriptionChurnStatus, BillingSubscriptionParams, BraintreePastDueSubscription, CanceledImeiResult, CreateBillingDeviceHistoryParams, CreateBillingHubspotPaymentLogParams, CreateBillingParams, CreateBillingStatusHistoryBraintreeParams, GetBillingCustomerBraintreeByIdParams, GetBillingDeviceTypePlansParams, GetBillingPlanResult, GetBillingPlansParams, GetBillingsParams, GetBillingSubscriptionsBraintreeParams, GetBraintreePastDueSubscriptionParams, GetCanceledImeisParams, GetChurnStatusByClientIdParams, GetClientIdFromBraintreeCustomerParams, GetMagentoPlanParams, GetUserByBraintreeCustomerIdParams, UpdateBillingCustomerBraintreeParams, UpdateBillingParams, UpsertBillingCustomerBraintreeParams, UpsertBillingDeviceTypePlanParams, UpsertBillingKlarnaCustomerParams, UpsertBillingKlarnaOrderParams, UpsertBillingPlanParams, UpsertBillingSubscriptionBraintreeParams } from '../../types/billing';
1
+ import { Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingDeviceTypePlan, BillingHubspotPaymentLog, BillingPlans, BillingStatusHistoryBraintree, BillingSubscriptionBraintree, Magento2Plan, User } from '../../entities';
2
+ import { BillingSubscriptionChurnStatus, BillingSubscriptionParams, BraintreePastDueSubscription, CanceledImeiResult, CreateBillingDeviceHistoryParams, CreateBillingHubspotPaymentLogParams, CreateBillingParams, CreateBillingStatusHistoryBraintreeParams, GetBillingCustomerBraintreeByIdParams, GetBillingDeviceTypePlansParams, GetBillingPlanResult, GetBillingPlansParams, GetBillingsParams, GetBillingSubscriptionsBraintreeParams, GetBraintreePastDueSubscriptionParams, GetCanceledImeisParams, GetChurnStatusByClientIdParams, GetClientIdFromBraintreeCustomerParams, GetMagentoPlanParams, GetUserByBraintreeCustomerIdParams, UpdateBillingCustomerBraintreeParams, UpdateBillingParams, UpsertBillingCustomerBraintreeParams, UpsertBillingDeviceTypePlanParams, UpsertBillingPlanParams, UpsertBillingSubscriptionBraintreeParams } from '../../types/billing';
3
3
  import { BaseRepository } from '../baseRepository';
4
4
  export declare class BillingRepository extends BaseRepository {
5
5
  /**
@@ -178,18 +178,6 @@ export declare class BillingRepository extends BaseRepository {
178
178
  * @returns The created billing hubspot payment log information
179
179
  */
180
180
  createBillingHubspotPaymentLog(params: CreateBillingHubspotPaymentLogParams): Promise<BillingHubspotPaymentLog>;
181
- /**
182
- * Upsert billing klarna customer
183
- * @param {UpsertBillingKlarnaCustomerParams} params containing information to upsert billing klarna customer
184
- * @returns The upserted billing klarna customer information
185
- */
186
- upsertBillingKlarnaCustomer(params: UpsertBillingKlarnaCustomerParams): Promise<BillingKlarnaCustomer>;
187
- /**
188
- * Upsert billing klarna order
189
- * @param {UpsertBillingKlarnaOrderParams} params containing information to upsert billing klarna order
190
- * @returns The upserted billing klarna order information
191
- */
192
- upsertBillingKlarnaOrder(params: UpsertBillingKlarnaOrderParams): Promise<BillingKlarnaOrder>;
193
181
  /**
194
182
  * Get billing subscription braintree by imei
195
183
  * @param {BillingSubscriptionParams} params
@@ -197,13 +185,6 @@ export declare class BillingRepository extends BaseRepository {
197
185
  * @returns {Promise<BillingSubscriptionBraintree>} The billing subscription braintree information
198
186
  */
199
187
  getBillingSubscriptionsBraintreeByImei(params: BillingSubscriptionParams): Promise<BillingSubscriptionBraintree>;
200
- /**
201
- * Get billing klarna order by imei
202
- * @param {BillingSubscriptionParams} params
203
- * - imei: The imei of the device
204
- * @returns {Promise<BillingSubscriptionBraintree>} The billing klarna order information
205
- */
206
- getBillingKlarnaOrderByImei(params: BillingSubscriptionParams): Promise<BillingKlarnaOrder>;
207
188
  /**
208
189
  * Upsert billing plan
209
190
  * @param {UpsertBillingPlanParams} params containing information to upsert billing plan
@@ -1,5 +1,5 @@
1
1
  import { User } from '../../entities/user';
2
- import { CreateUserParams, DeleteAccountParams, DeleteUserParams, GetUserByIdParams, GetUserClientRelatedEntitiesCountParams, GetUserInfoWithActivationInfoParams, GetUserInfoWithAmazonDevicesInfoParams, GetUsersConfigurationByImeiParams, GetUsersDataParams, GetUsersIdsByPhoneAndCountryCodeParams, GetUsersInfoWithDevicesInfoParams, GetUsersParams, GetUsersWithRolesParams, UpdateUserParams, UserClientRelatedEntitiesCountResult, UserData, UserInfoWithActivationInfo, UserInfoWithAmazonDevicesInfo, UserInfoWithDevicesInfo, UserWithRole } from '../../types/user';
2
+ import { CreateUserParams, DeleteAccountParams, DeleteUserParams, GetUserByIdParams, GetUserClientRelatedEntitiesCountParams, GetUserInfoWithAmazonDevicesInfoParams, GetUsersConfigurationByImeiParams, GetUsersDataParams, GetUsersIdsByPhoneAndCountryCodeParams, GetUsersInfoWithDevicesInfoParams, GetUsersParams, GetUsersWithRolesParams, UpdateUserParams, UserClientRelatedEntitiesCountResult, UserData, UserInfoWithAmazonDevicesInfo, UserInfoWithDevicesInfo, UserWithRole } from '../../types/user';
3
3
  import { BaseRepository } from '../baseRepository';
4
4
  export declare class UsersRepository extends BaseRepository {
5
5
  /**
@@ -144,11 +144,4 @@ export declare class UsersRepository extends BaseRepository {
144
144
  * @returns The user information with the amazon devices
145
145
  */
146
146
  getUserInfoWithAmazonDevicesInfo(params: GetUserInfoWithAmazonDevicesInfoParams): Promise<UserInfoWithAmazonDevicesInfo>;
147
- /**
148
- * Get users info with activation info
149
- * @param {GetUserInfoWithActivationInfoParams} params containing information to get users info with activation info
150
- * - filters.userId: The user id to obtain the user info with activation info
151
- * @returns The user information with the activation info
152
- */
153
- getUsersInfoWithActivationInfo(params: GetUserInfoWithActivationInfoParams): Promise<UserInfoWithActivationInfo>;
154
147
  }
@@ -236,37 +236,6 @@ export interface CreateBillingHubspotPaymentLogParams {
236
236
  totalTaxes?: number | null;
237
237
  updatedByUserId?: string | null;
238
238
  }
239
- export interface UpsertBillingKlarnaCustomerParams {
240
- id: string;
241
- firstName?: string | null;
242
- lastName?: string | null;
243
- billingEmail?: string | null;
244
- shippingEmail?: string | null;
245
- streetAddress?: string | null;
246
- city?: string | null;
247
- region?: string | null;
248
- country?: string | null;
249
- postalCode?: string | null;
250
- phone?: string | null;
251
- createdAt?: Date | null;
252
- }
253
- export interface UpsertBillingKlarnaOrderParams {
254
- deviceId: string;
255
- klarnaCustomerId: string;
256
- orderId: string;
257
- planId?: string | null;
258
- createdAt?: Date | null;
259
- subscriptionStart?: Date | null;
260
- subscriptionEnd?: Date | null;
261
- nextBillingDate?: Date | null;
262
- subscriptionValue?: number | null;
263
- status?: string | null;
264
- paymentType?: string | null;
265
- discounts?: object | null;
266
- addOns?: object | null;
267
- nextBillingPeriodAmount?: number | null;
268
- paymentMethodToken?: string | null;
269
- }
270
239
  export type UpsertBillingPlanParamsStatus = 'active' | 'disabled' | 'draft';
271
240
  export type UpsertBillingPlanParamsTagetConsumer = 'consumer' | 'enterprise' | 'any';
272
241
  export type UpsertBillingPlanParamsTrialDurationUnit = 'day' | 'month' | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.3.20",
3
+ "version": "1.3.22",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,5 +0,0 @@
1
- import { BillingKlarnaOrder } from '../../entities';
2
- import { NovaDataSource } from '../../novaDataSource';
3
- import { BillingSubscriptionParams } from '../../types/billing';
4
- import { Logger } from '../../types/logger';
5
- export declare const getBillingKlarnaOrderByImei: (novaDataSource: NovaDataSource, params: BillingSubscriptionParams, logger: Logger) => Promise<BillingKlarnaOrder>;
@@ -1,5 +0,0 @@
1
- import { BillingKlarnaCustomer } from '../../entities';
2
- import { NovaDataSource } from '../../novaDataSource';
3
- import { UpsertBillingKlarnaCustomerParams } from '../../types/billing';
4
- import { Logger } from '../../types/logger';
5
- export declare const upsertBillingKlarnaCustomer: (novaDataSource: NovaDataSource, params: UpsertBillingKlarnaCustomerParams, logger: Logger) => Promise<BillingKlarnaCustomer>;
@@ -1,5 +0,0 @@
1
- import { BillingKlarnaOrder } from '../../entities';
2
- import { NovaDataSource } from '../../novaDataSource';
3
- import { UpsertBillingKlarnaOrderParams } from '../../types/billing';
4
- import { Logger } from '../../types/logger';
5
- export declare const upsertBillingKlarnaOrder: (novaDataSource: NovaDataSource, params: UpsertBillingKlarnaOrderParams, logger: Logger) => Promise<BillingKlarnaOrder>;
@@ -1,4 +0,0 @@
1
- import { NovaDataSource } from '../../novaDataSource';
2
- import { Logger } from '../../types/logger';
3
- import { GetUserInfoWithActivationInfoParams, UserInfoWithActivationInfo } from '../../types/user';
4
- export declare const getUsersInfoWithActivationInfo: (novaDataSource: NovaDataSource, params: GetUserInfoWithActivationInfoParams, logger: Logger) => Promise<UserInfoWithActivationInfo>;