@adtrackify/at-service-common 1.0.38 → 1.0.40

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 CHANGED
@@ -346,6 +346,7 @@ declare module '@adtrackify/at-service-common/helpers/index' {
346
346
  export * from '@adtrackify/at-service-common/helpers/input-validation-helper';
347
347
  export * from '@adtrackify/at-service-common/helpers/logging-helper';
348
348
  export * from '@adtrackify/at-service-common/helpers/response-helper';
349
+ export * from '@adtrackify/at-service-common/helpers/shopify-helper';
349
350
 
350
351
  }
351
352
  declare module '@adtrackify/at-service-common/helpers/input-validation-helper' {
@@ -395,6 +396,18 @@ declare module '@adtrackify/at-service-common/helpers/response-helper' {
395
396
  body: string;
396
397
  };
397
398
 
399
+ }
400
+ declare module '@adtrackify/at-service-common/helpers/shopify-helper' {
401
+ export interface ShopifyRequestValidationParameters {
402
+ code: string;
403
+ hmac?: string;
404
+ shop: string;
405
+ state: string;
406
+ timestamp: string;
407
+ }
408
+ export const isShopifyRequestValid: (validationParams: ShopifyRequestValidationParameters, validationHmac: string, shopifyAppApiSecret: string) => boolean;
409
+ export const validateShopifyRequest: (validationParams: ShopifyRequestValidationParameters, validationHmac: string, shopifyAppApiSecret: string) => boolean;
410
+
398
411
  }
399
412
  declare module '@adtrackify/at-service-common/index' {
400
413
  export * from '@adtrackify/at-service-common/clients/index';
@@ -499,24 +512,13 @@ declare module '@adtrackify/at-service-common/libs/http-status-codes' {
499
512
 
500
513
  }
501
514
  declare module '@adtrackify/at-service-common/libs/index' {
515
+ export * from '@adtrackify/at-service-common/helpers/shopify-helper';
502
516
  export * from '@adtrackify/at-service-common/libs/crypto';
503
517
  export * from '@adtrackify/at-service-common/libs/dates';
504
518
  export * from '@adtrackify/at-service-common/libs/http-error';
505
519
  export * from '@adtrackify/at-service-common/libs/http-status-codes';
506
- export * from '@adtrackify/at-service-common/libs/shopify';
507
520
  export * from '@adtrackify/at-service-common/libs/url';
508
521
 
509
- }
510
- declare module '@adtrackify/at-service-common/libs/shopify' {
511
- export interface ShopifyRequestValidationParameters {
512
- code: string;
513
- hmac?: string;
514
- shop: string;
515
- state: string;
516
- timestamp: string;
517
- }
518
- export const validateShopifyAppParameters: (validationParams: ShopifyRequestValidationParameters, validationHmac: string, shopifyAppApiSecret: string) => boolean;
519
-
520
522
  }
521
523
  declare module '@adtrackify/at-service-common/libs/url' {
522
524
  export const mapObjectToQueryString: (inputObj: any) => string;