@pushwoosh/rpc-v2-http-api-data 0.1.701 → 0.1.702

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/data.js CHANGED
@@ -7578,7 +7578,7 @@ export const data = {
7578
7578
  "journey": {
7579
7579
  "type": "string"
7580
7580
  },
7581
- "goalUuid": {
7581
+ "event": {
7582
7582
  "type": "string"
7583
7583
  },
7584
7584
  "dateFrom": {
@@ -21750,6 +21750,12 @@ export const data = {
21750
21750
  "response": "pushwoosh.rpc_v2.whatsapp.AuthResponseCodeResponse",
21751
21751
  "method": "post",
21752
21752
  "path": "/api/whatsapp:auth_response_code"
21753
+ },
21754
+ "FetchCatalog": {
21755
+ "request": "pushwoosh.rpc_v2.whatsapp.FetchCatalogRequest",
21756
+ "response": "pushwoosh.rpc_v2.whatsapp.FetchCatalogResponse",
21757
+ "method": "get",
21758
+ "path": "/api/whatsapp/catalog"
21753
21759
  }
21754
21760
  }
21755
21761
  },
@@ -21804,6 +21810,69 @@ export const data = {
21804
21810
  "type": "I",
21805
21811
  "fields": {}
21806
21812
  },
21813
+ "pushwoosh.rpc_v2.whatsapp.FetchCatalogRequest": {
21814
+ "type": "I",
21815
+ "fields": {
21816
+ "application": {
21817
+ "type": "string"
21818
+ }
21819
+ }
21820
+ },
21821
+ "pushwoosh.rpc_v2.whatsapp.FetchCatalogResponse": {
21822
+ "type": "I",
21823
+ "fields": {
21824
+ "catalog": {
21825
+ "type": "pushwoosh.rpc_v2.whatsapp.Catalog"
21826
+ },
21827
+ "products": {
21828
+ "type": "pushwoosh.rpc_v2.whatsapp.Product",
21829
+ "array": true
21830
+ }
21831
+ }
21832
+ },
21833
+ "pushwoosh.rpc_v2.whatsapp.Catalog": {
21834
+ "type": "I",
21835
+ "fields": {
21836
+ "id": {
21837
+ "type": "string"
21838
+ },
21839
+ "name": {
21840
+ "type": "string"
21841
+ },
21842
+ "productCount": {
21843
+ "type": "number"
21844
+ }
21845
+ }
21846
+ },
21847
+ "pushwoosh.rpc_v2.whatsapp.Product": {
21848
+ "type": "I",
21849
+ "fields": {
21850
+ "id": {
21851
+ "type": "string"
21852
+ },
21853
+ "name": {
21854
+ "type": "string"
21855
+ },
21856
+ "description": {
21857
+ "type": "string"
21858
+ },
21859
+ "url": {
21860
+ "type": "string"
21861
+ },
21862
+ "imageUrl": {
21863
+ "type": "string"
21864
+ },
21865
+ "retailerId": {
21866
+ "type": "string"
21867
+ },
21868
+ "price": {
21869
+ "type": "string"
21870
+ },
21871
+ "brand": {
21872
+ "type": "string"
21873
+ }
21874
+ }
21875
+ },
21807
21876
  "pushwoosh.rpc_v2.whatsapp_presets.WhatsAppPresetsService": {
21808
21877
  "type": "S",
21809
21878
  "key": "whatsAppPresets",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.701",
3
+ "version": "0.1.702",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -647,7 +647,7 @@ export type ExportJourneyPointsStatisticsResult = {
647
647
  export type ExportJourneyGoalUsersArgs = {
648
648
  application: string;
649
649
  journey: string;
650
- goalUuid: string;
650
+ event: string;
651
651
  dateFrom: Date;
652
652
  dateTo: Date;
653
653
  };
package/whatsapp.d.ts CHANGED
@@ -2,6 +2,7 @@ export interface WhatsAppService {
2
2
  RegisterWABA(request: RegisterWABARequest): Promise<RegisterWABAResponse>;
3
3
  RegisterWABATwilio(request: RegisterWABATwilioRequest): Promise<RegisterWABATwilioResponse>;
4
4
  AuthResponseCode(request: AuthResponseCodeRequest): Promise<AuthResponseCodeResponse>;
5
+ FetchCatalog(request: FetchCatalogRequest): Promise<FetchCatalogResponse>;
5
6
  }
6
7
  export type RegisterWABARequest = {
7
8
  application?: string;
@@ -20,3 +21,25 @@ export type RegisterWABATwilioRequest = {
20
21
  phonenumberId?: string;
21
22
  };
22
23
  export type RegisterWABATwilioResponse = {};
24
+ export type FetchCatalogRequest = {
25
+ application?: string;
26
+ };
27
+ export type FetchCatalogResponse = {
28
+ catalog: Catalog;
29
+ products: Product[];
30
+ };
31
+ export type Catalog = {
32
+ id: string;
33
+ name: string;
34
+ productCount: number;
35
+ };
36
+ export type Product = {
37
+ id: string;
38
+ name: string;
39
+ description: string;
40
+ url: string;
41
+ imageUrl: string;
42
+ retailerId: string;
43
+ price: string;
44
+ brand: string;
45
+ };