@adtrackify/at-service-common 1.0.42 → 1.0.44
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.d.ts +81 -6
- package/dist/index.js +12883 -5136
- package/dist/index.js.map +4 -4
- package/package.json +18 -18
- package/src/clients/internal-api/accounts-client.ts +26 -1
- package/src/clients/internal-api/index.ts +2 -1
- package/src/clients/internal-api/shopify-app-install-client.ts +51 -0
package/dist/index.d.ts
CHANGED
|
@@ -80,7 +80,11 @@ declare module '@adtrackify/at-service-common/clients/index' {
|
|
|
80
80
|
}
|
|
81
81
|
declare module '@adtrackify/at-service-common/clients/internal-api/accounts-client' {
|
|
82
82
|
import { ApiResponse } from '@adtrackify/at-service-common/types/api-response';
|
|
83
|
-
import { Destination } from '@adtrackify/at-tracking-event-types';
|
|
83
|
+
import { ACCOUNT_STATUS, Destination } from '@adtrackify/at-tracking-event-types';
|
|
84
|
+
export interface AccountResponseData {
|
|
85
|
+
account: boolean;
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
}
|
|
84
88
|
export interface IsAuthorizedUserResponseData {
|
|
85
89
|
isAccountUser: boolean;
|
|
86
90
|
[key: string]: any;
|
|
@@ -90,6 +94,14 @@ declare module '@adtrackify/at-service-common/clients/internal-api/accounts-clie
|
|
|
90
94
|
destinations: Destination[];
|
|
91
95
|
[key: string]: any;
|
|
92
96
|
}
|
|
97
|
+
export interface UpdateAccountRequest {
|
|
98
|
+
accountName?: string;
|
|
99
|
+
companyName?: string;
|
|
100
|
+
primaryEmail?: string;
|
|
101
|
+
ownerId?: string;
|
|
102
|
+
subscriptionId?: string;
|
|
103
|
+
accountStatus?: ACCOUNT_STATUS;
|
|
104
|
+
}
|
|
93
105
|
export class AccountsClient {
|
|
94
106
|
BASE_API_URL: string;
|
|
95
107
|
ACCOUNTS_API_KEY?: string;
|
|
@@ -129,6 +141,7 @@ declare module '@adtrackify/at-service-common/clients/internal-api/accounts-clie
|
|
|
129
141
|
data: any;
|
|
130
142
|
status: any;
|
|
131
143
|
}>;
|
|
144
|
+
updateAccount: (accountId: string, body: any) => Promise<ApiResponse<AccountResponseData>>;
|
|
132
145
|
addOwner: (accountId: string, userId: string) => Promise<{
|
|
133
146
|
headers: any;
|
|
134
147
|
data: any;
|
|
@@ -205,6 +218,64 @@ declare module '@adtrackify/at-service-common/clients/internal-api/index' {
|
|
|
205
218
|
export * from '@adtrackify/at-service-common/clients/internal-api/destinations-client';
|
|
206
219
|
export * from '@adtrackify/at-service-common/clients/internal-api/accounts-client';
|
|
207
220
|
export * from '@adtrackify/at-service-common/clients/internal-api/users-auth-client';
|
|
221
|
+
export * from '@adtrackify/at-service-common/clients/internal-api/shopify-app-install-client';
|
|
222
|
+
|
|
223
|
+
}
|
|
224
|
+
declare module '@adtrackify/at-service-common/clients/internal-api/shopify-app-install-client' {
|
|
225
|
+
import { ApiResponse } from '@adtrackify/at-service-common/types/api-response';
|
|
226
|
+
import { ShopifyAppInstall, ShopifyAppSubscriptionStatus } from '@adtrackify/at-tracking-event-types';
|
|
227
|
+
export interface ShopifyAppInstallResponseData {
|
|
228
|
+
shopifyAppInstall: ShopifyAppInstall;
|
|
229
|
+
[key: string]: any;
|
|
230
|
+
}
|
|
231
|
+
export interface UpdateShopifyAppInstallRequest {
|
|
232
|
+
appSubscriptionStatus?: ShopifyAppSubscriptionStatus;
|
|
233
|
+
pixelId?: string;
|
|
234
|
+
isAppEnabled?: boolean;
|
|
235
|
+
}
|
|
236
|
+
export class ShopifyAppInstallClient {
|
|
237
|
+
BASE_API_URL: string;
|
|
238
|
+
SHOPIFY_APP_INSTALL_API_KEY: string;
|
|
239
|
+
constructor(baseApiUrl: string, shopifyAppInstallApiKey: string);
|
|
240
|
+
getConfig: () => {
|
|
241
|
+
baseURL: string;
|
|
242
|
+
headers: {
|
|
243
|
+
common: {
|
|
244
|
+
'x-api-key': string;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
getClient: () => Promise<{
|
|
249
|
+
instance: () => import("axios").AxiosInstance;
|
|
250
|
+
get: (url: string, config?: any) => Promise<{
|
|
251
|
+
headers: any;
|
|
252
|
+
data: any;
|
|
253
|
+
status: any;
|
|
254
|
+
}>;
|
|
255
|
+
post: (url: string, data?: any, config?: any) => Promise<{
|
|
256
|
+
headers: any;
|
|
257
|
+
data: any;
|
|
258
|
+
status: any;
|
|
259
|
+
}>;
|
|
260
|
+
delete: (url: string, config?: any) => Promise<{
|
|
261
|
+
headers: any;
|
|
262
|
+
data: any;
|
|
263
|
+
status: any;
|
|
264
|
+
}>;
|
|
265
|
+
put: (url: string, data?: any, config?: any) => Promise<{
|
|
266
|
+
headers: any;
|
|
267
|
+
data: any;
|
|
268
|
+
status: any;
|
|
269
|
+
}>;
|
|
270
|
+
patch: (url: string, data?: any, config?: any) => Promise<{
|
|
271
|
+
headers: any;
|
|
272
|
+
data: any;
|
|
273
|
+
status: any;
|
|
274
|
+
}>;
|
|
275
|
+
setBaseUrl: (url: string) => boolean;
|
|
276
|
+
}>;
|
|
277
|
+
updateShopifyAppInstall: (shopifyAppInstallId: string, updateShopifyAppInstallRequest: UpdateShopifyAppInstallRequest) => Promise<ApiResponse<ShopifyAppInstallResponseData>>;
|
|
278
|
+
}
|
|
208
279
|
|
|
209
280
|
}
|
|
210
281
|
declare module '@adtrackify/at-service-common/clients/internal-api/users-auth-client' {
|
|
@@ -214,6 +285,12 @@ declare module '@adtrackify/at-service-common/clients/internal-api/users-auth-cl
|
|
|
214
285
|
user: User;
|
|
215
286
|
[key: string]: any;
|
|
216
287
|
}
|
|
288
|
+
export interface UserSignupRequest {
|
|
289
|
+
email: string;
|
|
290
|
+
password: string;
|
|
291
|
+
givenName: string;
|
|
292
|
+
familyName: string;
|
|
293
|
+
}
|
|
217
294
|
export class UsersAuthClient {
|
|
218
295
|
SERVICE_API_ROOT_URL: string;
|
|
219
296
|
BASE_API_URL: string;
|
|
@@ -254,11 +331,9 @@ declare module '@adtrackify/at-service-common/clients/internal-api/users-auth-cl
|
|
|
254
331
|
}>;
|
|
255
332
|
setBaseUrl: (url: string) => boolean;
|
|
256
333
|
}>;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
status: any;
|
|
261
|
-
}>;
|
|
334
|
+
signupAndConfirmUser: (userSignupRequest: any) => Promise<any>;
|
|
335
|
+
signupUser: (userSignupRequest: UserSignupRequest) => Promise<any>;
|
|
336
|
+
adminConfirmUser: (userName: string) => Promise<any>;
|
|
262
337
|
getUserByEmail: (email: string) => Promise<ApiResponse<UserResponseData>>;
|
|
263
338
|
}
|
|
264
339
|
|