@spytecgps/nova-orm 0.0.111 → 0.0.113
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/billingHubspotPaymentLog.d.ts +50 -0
- package/dist/entities/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/repositories/billing/createBillingHubspotPaymentLog.d.ts +5 -0
- package/dist/repositories/billing/index.d.ts +8 -2
- package/dist/repositories/devices/getDeviceWithUsersInfo.d.ts +4 -0
- package/dist/repositories/devices/index.d.ts +8 -1
- package/dist/types/billing.d.ts +50 -0
- package/dist/types/devices.d.ts +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BillingHubspotPaymentLog } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { CreateBillingHubspotPaymentLogParams } from '../../types/billing';
|
|
4
|
+
import { Logger } from '../../types/logger';
|
|
5
|
+
export declare const createBillingHubspotPaymentLog: (novaDataSource: NovaDataSource, params: CreateBillingHubspotPaymentLogParams, logger: Logger) => Promise<BillingHubspotPaymentLog>;
|
|
@@ -1,5 +1,5 @@
|
|
|
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';
|
|
1
|
+
import { Billing, BillingCustomerBraintree, BillingDeviceHistory, BillingHubspotPaymentLog, BillingStatusHistoryBraintree, BillingSubscriptionBraintree, Magento2Plan, User } from '../../entities';
|
|
2
|
+
import { BillingSubscriptionChurnStatus, CanceledImeiResult, CreateBillingDeviceHistoryParams, CreateBillingHubspotPaymentLogParams, 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
|
/**
|
|
@@ -172,4 +172,10 @@ export declare class BillingRepository extends BaseRepository {
|
|
|
172
172
|
* @returns The magento plan
|
|
173
173
|
*/
|
|
174
174
|
getMagentoPlan(params: GetMagentoPlanParams): Promise<Magento2Plan>;
|
|
175
|
+
/**
|
|
176
|
+
* Create billing hubspot payment log
|
|
177
|
+
* @param {CreateBillingHubspotPaymentLogParams} params containing information to create billing hubspot payment log
|
|
178
|
+
* @returns The created billing hubspot payment log information
|
|
179
|
+
*/
|
|
180
|
+
createBillingHubspotPaymentLog(params: CreateBillingHubspotPaymentLogParams): Promise<BillingHubspotPaymentLog>;
|
|
175
181
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { DeviceWithUsersInfo, GetDeviceWithUsersInfoParams } from '../../types/devices';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
export declare const getDeviceWithUsersInfo: (novaDataSource: NovaDataSource, params: GetDeviceWithUsersInfoParams, logger: Logger) => Promise<DeviceWithUsersInfo[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClientDeviceSetting, Device, DeviceCustomConfiguration, DeviceReplacement, DeviceType, IccidStatus, ImeiIccidCarrier } from '../../entities';
|
|
2
|
-
import { CanceledDeviceWithActiveSimCard, CarrierStatus, CreateClientDeviceSettingParams, CreateDeviceParams, CreateDeviceReplacementParams, DeleteDeviceParams, DeviceTypeModelWithDeviceCount, GenerateIdentifierKeyParams, GetCanceledDevicesWithActiveSimCardsParams, GetCarrierStatusUpdatedBeforeParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceCustomConfigParams, GetDeviceParams, GetDevicesParams, GetDeviceTypesModelsOrderedByDeviceCountParams, GetDeviceTypesParams, GetFilteredImeisWithStatusParams, GetIccidStatusParams, GetImeiIccidCarrierParams, GetImeiIccidCarriersParams, UpdateClientDeviceSettingParams, UpdateDeviceParams, UpdateIccidStatusParams, UpdateImeiIccidCarrierParams, UpsertIccidStatusParams } from '../../types/devices';
|
|
2
|
+
import { CanceledDeviceWithActiveSimCard, CarrierStatus, CreateClientDeviceSettingParams, CreateDeviceParams, CreateDeviceReplacementParams, DeleteDeviceParams, DeviceTypeModelWithDeviceCount, DeviceWithUsersInfo, GenerateIdentifierKeyParams, GetCanceledDevicesWithActiveSimCardsParams, GetCarrierStatusUpdatedBeforeParams, GetClientDeviceSettingParams, GetClientDeviceSettingsParams, GetDeviceCustomConfigParams, GetDeviceParams, GetDevicesParams, GetDeviceTypesModelsOrderedByDeviceCountParams, GetDeviceTypesParams, GetDeviceWithUsersInfoParams, GetFilteredImeisWithStatusParams, GetIccidStatusParams, GetImeiIccidCarrierParams, GetImeiIccidCarriersParams, UpdateClientDeviceSettingParams, UpdateDeviceParams, UpdateIccidStatusParams, UpdateImeiIccidCarrierParams, UpsertIccidStatusParams } from '../../types/devices';
|
|
3
3
|
import { BaseRepository } from './../baseRepository';
|
|
4
4
|
export declare class DevicesRepository extends BaseRepository {
|
|
5
5
|
/**
|
|
@@ -244,4 +244,11 @@ export declare class DevicesRepository extends BaseRepository {
|
|
|
244
244
|
* @returns Whether the iccid status was upserted
|
|
245
245
|
*/
|
|
246
246
|
upsertIccidStatus(params: UpsertIccidStatusParams): Promise<boolean>;
|
|
247
|
+
/**
|
|
248
|
+
* Get device with users info
|
|
249
|
+
* @param {GetDeviceWithUsersInfoParams} params containing information to get device with users info
|
|
250
|
+
* - filters.imei: The imei of the device
|
|
251
|
+
* @returns The device with users info
|
|
252
|
+
*/
|
|
253
|
+
getDeviceWithUsersInfo(params: GetDeviceWithUsersInfoParams): Promise<DeviceWithUsersInfo[]>;
|
|
247
254
|
}
|
package/dist/types/billing.d.ts
CHANGED
|
@@ -177,3 +177,53 @@ export interface GetMagentoPlanParams {
|
|
|
177
177
|
code: string;
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
+
export interface CreateBillingHubspotPaymentLogParams {
|
|
181
|
+
id?: number;
|
|
182
|
+
amountPaid: number;
|
|
183
|
+
owner?: string | null;
|
|
184
|
+
bankOfIssuer?: string | null;
|
|
185
|
+
billingAddress?: string | null;
|
|
186
|
+
billingAddressCity?: string | null;
|
|
187
|
+
billingAddressCountry?: string | null;
|
|
188
|
+
billingAddressLine1?: string | null;
|
|
189
|
+
billingAddressLine2?: string | null;
|
|
190
|
+
billingAddressState?: string | null;
|
|
191
|
+
billingAddressZip?: string | null;
|
|
192
|
+
createdByUserId?: string | null;
|
|
193
|
+
currencyCode?: string | null;
|
|
194
|
+
customer?: string | null;
|
|
195
|
+
grossAmount?: number | null;
|
|
196
|
+
lastFourDigits?: string | null;
|
|
197
|
+
lineItemDiscountAmount?: number | null;
|
|
198
|
+
netAmount?: number | null;
|
|
199
|
+
objectCreateDateTime?: Date | null;
|
|
200
|
+
objectId?: string | null;
|
|
201
|
+
objectLastModifiedDateTime?: Date | null;
|
|
202
|
+
orderDiscountAmount?: number | null;
|
|
203
|
+
orderDiscountCode?: string | null;
|
|
204
|
+
orderDiscountPercentage?: number | null;
|
|
205
|
+
ownerAssignedDateTime?: Date | null;
|
|
206
|
+
paymentDateTime?: Date | null;
|
|
207
|
+
paymentId?: string | null;
|
|
208
|
+
paymentMethod?: string | null;
|
|
209
|
+
paymentSourceName?: string | null;
|
|
210
|
+
paymentType?: string | null;
|
|
211
|
+
processingFees?: number | null;
|
|
212
|
+
refunded?: number | null;
|
|
213
|
+
shippingAddress?: string | null;
|
|
214
|
+
shippingAddressCity?: string | null;
|
|
215
|
+
shippingAddressCountry?: string | null;
|
|
216
|
+
shippingAddressLine1?: string | null;
|
|
217
|
+
shippingAddressLine2?: string | null;
|
|
218
|
+
shippingAddressState?: string | null;
|
|
219
|
+
shippingAddressZip?: string | null;
|
|
220
|
+
source?: string | null;
|
|
221
|
+
sourceId?: string | null;
|
|
222
|
+
sourceUrl?: string | null;
|
|
223
|
+
status?: string | null;
|
|
224
|
+
statusUpdatedOn?: Date | null;
|
|
225
|
+
totalDiscountAmount?: number | null;
|
|
226
|
+
totalFees?: number | null;
|
|
227
|
+
totalTaxes?: number | null;
|
|
228
|
+
updatedByUserId?: string | null;
|
|
229
|
+
}
|
package/dist/types/devices.d.ts
CHANGED
|
@@ -236,3 +236,28 @@ export interface UpsertIccidStatusParams {
|
|
|
236
236
|
updateProcessing: boolean;
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
+
export interface GetDeviceWithUsersInfoParams {
|
|
240
|
+
filters: {
|
|
241
|
+
imei: string;
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
export interface DeviceWithUsersInfo {
|
|
245
|
+
username: string;
|
|
246
|
+
email: string;
|
|
247
|
+
latestPositionCreatedAt: Date;
|
|
248
|
+
latestPositionActualDate: Date;
|
|
249
|
+
latestPositionLatitude: number;
|
|
250
|
+
latestPositionLongitude: number;
|
|
251
|
+
latestPositionOdometer: number;
|
|
252
|
+
latestPositionSpeed: number;
|
|
253
|
+
deviceStatus: DeviceStatus;
|
|
254
|
+
alertName: string;
|
|
255
|
+
alertValue: string;
|
|
256
|
+
smsNotification: boolean;
|
|
257
|
+
emailNotification: boolean;
|
|
258
|
+
servicePlan: string;
|
|
259
|
+
iccid: string;
|
|
260
|
+
deviceName: string;
|
|
261
|
+
roleName: string;
|
|
262
|
+
subscriptionId: number;
|
|
263
|
+
}
|