@adtrackify/at-service-common 1.0.42 → 1.0.43

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/.editorconfig CHANGED
@@ -1,12 +1,12 @@
1
- root = true
2
-
3
- [*]
4
- end_of_line = lf
5
- charset = utf-8
6
- trim_trailing_whitespace = true
7
- insert_final_newline = false
8
- indent_style = space
9
- indent_size = 2
10
-
11
- [*.{diff,md}]
12
- trim_trailing_whitespace = false
1
+ root = true
2
+
3
+ [*]
4
+ end_of_line = lf
5
+ charset = utf-8
6
+ trim_trailing_whitespace = true
7
+ insert_final_newline = false
8
+ indent_style = space
9
+ indent_size = 2
10
+
11
+ [*.{diff,md}]
12
+ trim_trailing_whitespace = false
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;
@@ -206,6 +219,63 @@ declare module '@adtrackify/at-service-common/clients/internal-api/index' {
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';
208
221
 
222
+ }
223
+ declare module '@adtrackify/at-service-common/clients/internal-api/shopify-app-install-client' {
224
+ import { ApiResponse } from '@adtrackify/at-service-common/types/api-response';
225
+ import { ShopifyAppInstall, ShopifyAppSubscriptionStatus } from '@adtrackify/at-tracking-event-types';
226
+ export interface ShopifyAppInstallResponseData {
227
+ shopifyAppInstall: ShopifyAppInstall;
228
+ [key: string]: any;
229
+ }
230
+ export interface UpdateShopifyAppInstallRequest {
231
+ appSubscriptionStatus?: ShopifyAppSubscriptionStatus;
232
+ pixelId?: string;
233
+ isAppEnabled?: boolean;
234
+ }
235
+ export class ShopifyAppInstallClient {
236
+ BASE_API_URL: string;
237
+ SHOPIFY_APP_INSTALL_API_KEY: string;
238
+ constructor(baseApiUrl: string, shopifyAppInstallApiKey: string);
239
+ getConfig: () => {
240
+ baseURL: string;
241
+ headers: {
242
+ common: {
243
+ 'x-api-key': string;
244
+ };
245
+ };
246
+ };
247
+ getClient: () => Promise<{
248
+ instance: () => import("axios").AxiosInstance;
249
+ get: (url: string, config?: any) => Promise<{
250
+ headers: any;
251
+ data: any;
252
+ status: any;
253
+ }>;
254
+ post: (url: string, data?: any, config?: any) => Promise<{
255
+ headers: any;
256
+ data: any;
257
+ status: any;
258
+ }>;
259
+ delete: (url: string, config?: any) => Promise<{
260
+ headers: any;
261
+ data: any;
262
+ status: any;
263
+ }>;
264
+ put: (url: string, data?: any, config?: any) => Promise<{
265
+ headers: any;
266
+ data: any;
267
+ status: any;
268
+ }>;
269
+ patch: (url: string, data?: any, config?: any) => Promise<{
270
+ headers: any;
271
+ data: any;
272
+ status: any;
273
+ }>;
274
+ setBaseUrl: (url: string) => boolean;
275
+ }>;
276
+ updateShopifyAppInstall: (shopifyAppInstallId: string, updateShopifyAppInstallRequest: UpdateShopifyAppInstallRequest) => Promise<ApiResponse<ShopifyAppInstallResponseData>>;
277
+ }
278
+
209
279
  }
210
280
  declare module '@adtrackify/at-service-common/clients/internal-api/users-auth-client' {
211
281
  import { User } from '@adtrackify/at-tracking-event-types';
@@ -214,6 +284,12 @@ declare module '@adtrackify/at-service-common/clients/internal-api/users-auth-cl
214
284
  user: User;
215
285
  [key: string]: any;
216
286
  }
287
+ export interface UserSignupRequest {
288
+ email: string;
289
+ password: string;
290
+ givenName: string;
291
+ familyName: string;
292
+ }
217
293
  export class UsersAuthClient {
218
294
  SERVICE_API_ROOT_URL: string;
219
295
  BASE_API_URL: string;
@@ -254,11 +330,9 @@ declare module '@adtrackify/at-service-common/clients/internal-api/users-auth-cl
254
330
  }>;
255
331
  setBaseUrl: (url: string) => boolean;
256
332
  }>;
257
- signupUser: (userSignupRequest: any) => Promise<{
258
- headers: any;
259
- data: any;
260
- status: any;
261
- }>;
333
+ signupAndConfirmUser: (userSignupRequest: any) => Promise<any>;
334
+ signupUser: (userSignupRequest: UserSignupRequest) => Promise<any>;
335
+ adminConfirmUser: (userName: string) => Promise<any>;
262
336
  getUserByEmail: (email: string) => Promise<ApiResponse<UserResponseData>>;
263
337
  }
264
338