@spytecgps/nova-orm 1.3.31 → 1.3.33

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
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';
2
+ import { BillingSubscriptionChurnStatus, 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,13 +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
- * Get billing subscription braintree by imei
183
- * @param {BillingSubscriptionParams} params
184
- * - imei: The imei of the device
185
- * @returns {Promise<BillingSubscriptionBraintree>} The billing subscription braintree information
186
- */
187
- getBillingSubscriptionsBraintreeByImei(params: BillingSubscriptionParams): Promise<BillingSubscriptionBraintree>;
188
181
  /**
189
182
  * Upsert billing plan
190
183
  * @param {UpsertBillingPlanParams} params containing information to upsert billing plan
@@ -1,5 +1,4 @@
1
1
  import { Trip } from '../../entities';
2
2
  import { NovaDataSource } from '../../novaDataSource';
3
- import { Logger } from '../../types/logger';
4
3
  import { CreateTripParams } from '../../types/trip';
5
- export declare const createTrip: (novaDataSource: NovaDataSource, params: CreateTripParams, _logger: Logger) => Promise<Trip>;
4
+ export declare const createTrip: (novaDataSource: NovaDataSource, params: CreateTripParams) => Promise<Trip>;
@@ -1,4 +1,3 @@
1
1
  import { NovaDataSource } from '../../novaDataSource';
2
- import { Logger } from '../../types/logger';
3
2
  import { UpdateTripEndValuesParams } from '../../types/trip';
4
- export declare const updateTripEndValues: (novaDataSource: NovaDataSource, params: UpdateTripEndValuesParams, _logger: Logger) => Promise<boolean>;
3
+ export declare const updateTripEndValues: (novaDataSource: NovaDataSource, params: UpdateTripEndValuesParams) => Promise<boolean>;
@@ -1,4 +1,3 @@
1
1
  import { NovaDataSource } from '../../novaDataSource';
2
- import { Logger } from '../../types/logger';
3
2
  import { CreateTripParams } from '../../types/trip';
4
- export declare const upsertTrip: (novaDataSource: NovaDataSource, params: CreateTripParams, _logger: Logger) => Promise<boolean>;
3
+ export declare const upsertTrip: (novaDataSource: NovaDataSource, params: CreateTripParams) => Promise<boolean>;
@@ -104,9 +104,6 @@ export interface GetBillingSubscriptionsBraintreeParams extends BaseSelectQueryP
104
104
  clientId?: number;
105
105
  };
106
106
  }
107
- export interface BillingSubscriptionParams extends BaseSelectQueryParams {
108
- imei: string;
109
- }
110
107
  export interface GetChurnStatusByClientIdParams extends BaseSelectQueryParams {
111
108
  filters: {
112
109
  clientId: number;
@@ -103,3 +103,11 @@ export declare enum MediaType {
103
103
  Image = "image",
104
104
  Video = "video"
105
105
  }
106
+ export declare enum CameraSource {
107
+ Front = "front",
108
+ Interior = "interior"
109
+ }
110
+ export declare enum DeviceCameraMediaLocation {
111
+ SDCard = "sdCard",
112
+ Server = "server"
113
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.3.31",
3
+ "version": "1.3.33",
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 { BillingSubscriptionBraintree } from '../../entities';
2
- import { NovaDataSource } from '../../novaDataSource';
3
- import { BillingSubscriptionParams } from '../../types/billing';
4
- import { Logger } from '../../types/logger';
5
- export declare const getBillingSubscriptionsBraintreeByImei: (novaDataSource: NovaDataSource, params: BillingSubscriptionParams, logger: Logger) => Promise<BillingSubscriptionBraintree>;