@spytecgps/nova-orm 0.0.114 → 0.0.116
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/index.js +1 -1
- package/dist/repositories/index.d.ts +2 -1
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.d.ts +5 -0
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.d.ts +5 -0
- package/dist/repositories/userRegistrationAttempts/index.d.ts +50 -0
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.d.ts +4 -0
- package/dist/types/devices.d.ts +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/userRegistrationAttempts.d.ts +35 -0
- package/package.json +1 -1
|
@@ -20,5 +20,6 @@ import { UserConfigurationsRepository } from './userConfigurations';
|
|
|
20
20
|
import { UserDataDeletionRequestsRepository } from './userDataDeletionRequests';
|
|
21
21
|
import { UserInvitationsRepository } from './userInvitations';
|
|
22
22
|
import { UserRatingRequestsRepository } from './userRatingRequests';
|
|
23
|
+
import { UserRegistrationAttemptsRepository } from './userRegistrationAttempts';
|
|
23
24
|
import { UsersRepository } from './users';
|
|
24
|
-
export { AcumaticaRepository, AlertRepository, AlertTypesRepository, AssetCategoriesRepository, BillingRepository, BlacklistRepository, BoundariesRepository, ClientsRepository, CountriesRepository, DeviceBehaviorsRepository, DevicesRepository, FirmwaresRepository, NotificationRecipientsRepository, PositionRepository, SecurityRepository, UserActivationsRepository, UserAppFeedbackRepository, UserAppIncidentsRepository, UserConfigurationsRepository, UserDataDeletionRequestsRepository, UserInvitationsRepository, UserRatingRequestsRepository, UsersRepository, };
|
|
25
|
+
export { AcumaticaRepository, AlertRepository, AlertTypesRepository, AssetCategoriesRepository, BillingRepository, BlacklistRepository, BoundariesRepository, ClientsRepository, CountriesRepository, DeviceBehaviorsRepository, DevicesRepository, FirmwaresRepository, NotificationRecipientsRepository, PositionRepository, SecurityRepository, UserActivationsRepository, UserAppFeedbackRepository, UserAppIncidentsRepository, UserConfigurationsRepository, UserDataDeletionRequestsRepository, UserInvitationsRepository, UserRatingRequestsRepository, UserRegistrationAttemptsRepository, UsersRepository, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UserRegistrationAttempt } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
import { CreateUserRegistrationAttemptParams } from '../../types/userRegistrationAttempts';
|
|
5
|
+
export declare const createUserRegistrationAttempt: (novaDataSource: NovaDataSource, params: CreateUserRegistrationAttemptParams, logger: Logger) => Promise<UserRegistrationAttempt>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UserRegistrationAttempt } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
import { GetUserRegistrationAttemptsParams } from '../../types/userRegistrationAttempts';
|
|
5
|
+
export declare const getUserRegistrationAttempts: (novaDataSource: NovaDataSource, params: GetUserRegistrationAttemptsParams, logger: Logger) => Promise<UserRegistrationAttempt[]>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { UserRegistrationAttempt } from '../../entities/userRegistrationAttempt';
|
|
2
|
+
import { CreateUserRegistrationAttemptParams, GetUserRegistrationAttemptsParams, UpdateUserRegistrationAttemptParams } from '../../types/userRegistrationAttempts';
|
|
3
|
+
import { BaseRepository } from '../baseRepository';
|
|
4
|
+
export declare class UserRegistrationAttemptsRepository extends BaseRepository {
|
|
5
|
+
/**
|
|
6
|
+
* Get user registration attempts
|
|
7
|
+
* @param {GetUserRegistrationAttemptsParams} params containing information to get user registration attempts
|
|
8
|
+
* One of the following filters is required:
|
|
9
|
+
* - filters.id: The user registration attempt id
|
|
10
|
+
* - filters.tempUserId: The temp user id
|
|
11
|
+
* @returns The user registration attempts list
|
|
12
|
+
*/
|
|
13
|
+
getUserRegistrationAttempts(params: GetUserRegistrationAttemptsParams): Promise<UserRegistrationAttempt[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Create user registration attempt
|
|
16
|
+
* @param {CreateUserRegistrationAttemptParams} params containing information to create user registration attempt
|
|
17
|
+
* One of the following fields is required:
|
|
18
|
+
* - id: The user registration attempt id
|
|
19
|
+
* - firstName: The user first name
|
|
20
|
+
* - lastName: The user last name
|
|
21
|
+
* - email: The user email
|
|
22
|
+
* - phoneNumber: The user phone number
|
|
23
|
+
* - phoneCode: The user phone code
|
|
24
|
+
* - phoneCodeCountryId: The user phone code country id
|
|
25
|
+
* - imei: The user imei
|
|
26
|
+
* - platform: The user platform
|
|
27
|
+
* - status: The user status
|
|
28
|
+
* - tempUserId: The temp user id
|
|
29
|
+
* @returns The created user registration attempt
|
|
30
|
+
*/
|
|
31
|
+
createUserRegistrationAttempt(params: CreateUserRegistrationAttemptParams): Promise<UserRegistrationAttempt>;
|
|
32
|
+
/**
|
|
33
|
+
* Update user registration attempt
|
|
34
|
+
* @param {UpdateUserRegistrationAttemptParams} params containing information to update user registration attempt
|
|
35
|
+
* The following filter is required:
|
|
36
|
+
* - filters.id: The user registration attempt id
|
|
37
|
+
* One of the following fields is required:
|
|
38
|
+
* - values.clientId: The user client id
|
|
39
|
+
* - values.userName: The user name
|
|
40
|
+
* - values.pin: The user pin
|
|
41
|
+
* - values.street: The user street
|
|
42
|
+
* - values.city: The user city
|
|
43
|
+
* - values.state: The user state
|
|
44
|
+
* - values.postalCode: The user postal code
|
|
45
|
+
* - values.country: The user country
|
|
46
|
+
* - values.countryCode: The user country code
|
|
47
|
+
* @returns True if the user registration attempt was updated, false otherwise
|
|
48
|
+
*/
|
|
49
|
+
updateUserRegistrationAttempt(params: UpdateUserRegistrationAttemptParams): Promise<boolean>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { Logger } from '../../types/logger';
|
|
3
|
+
import { UpdateUserRegistrationAttemptParams } from '../../types/userRegistrationAttempts';
|
|
4
|
+
export declare const updateUserRegistrationAttempt: (novaDataSource: NovaDataSource, params: UpdateUserRegistrationAttemptParams, logger: Logger) => Promise<boolean>;
|
package/dist/types/devices.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -21,4 +21,5 @@ import * as UserConfigurations from './userConfigurations';
|
|
|
21
21
|
import * as UserDataDeletionRequests from './userDataDeletionRequests';
|
|
22
22
|
import * as UserInvitations from './userInvitations';
|
|
23
23
|
import * as UserRatingRequests from './userRatingRequests';
|
|
24
|
-
|
|
24
|
+
import * as UserRegistrationAttempts from './userRegistrationAttempts';
|
|
25
|
+
export { Acumatica, Alerts, AlertTypes, Billing, Blacklist, Boundaries, Clients, Countries, DeviceBehaviors, Devices, Firmwares, Logger, NotificationRecipients, Positions, Security, Users, UserActivations, UserAppFeedback, UserAppIncidents, UserConfigurations, UserDataDeletionRequests, UserInvitations, UserRatingRequests, UserRegistrationAttempts, };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface GetUserRegistrationAttemptsParams {
|
|
2
|
+
filters: {
|
|
3
|
+
id?: number;
|
|
4
|
+
tempUserId?: string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export interface CreateUserRegistrationAttemptParams {
|
|
8
|
+
id?: number;
|
|
9
|
+
firstName?: string;
|
|
10
|
+
lastName?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
phoneNumber?: string;
|
|
13
|
+
phoneCode?: string;
|
|
14
|
+
phoneCodeCountryId?: string;
|
|
15
|
+
imei?: string;
|
|
16
|
+
platform?: string;
|
|
17
|
+
status?: string;
|
|
18
|
+
tempUserId?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface UpdateUserRegistrationAttemptParams {
|
|
21
|
+
filters: {
|
|
22
|
+
id: number;
|
|
23
|
+
};
|
|
24
|
+
values: {
|
|
25
|
+
clientId?: number;
|
|
26
|
+
userName?: string;
|
|
27
|
+
pin?: number;
|
|
28
|
+
street?: string;
|
|
29
|
+
city?: string;
|
|
30
|
+
state?: string;
|
|
31
|
+
postalCode?: string;
|
|
32
|
+
country?: string;
|
|
33
|
+
countryCode?: string;
|
|
34
|
+
};
|
|
35
|
+
}
|