@wppconnect/wa-js 2.10.1 → 2.11.0

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/assert/assertProduct.d.ts +22 -0
  3. package/dist/assert/index.d.ts +1 -0
  4. package/dist/catalog/functions/addProductImage.d.ts +28 -0
  5. package/dist/catalog/functions/changeProductImage.d.ts +28 -0
  6. package/dist/catalog/functions/createCollection.d.ts +26 -0
  7. package/dist/catalog/functions/createProduct.d.ts +47 -0
  8. package/dist/catalog/functions/deleteCollection.d.ts +26 -0
  9. package/dist/catalog/functions/deleteProduct.d.ts +30 -0
  10. package/dist/catalog/functions/editCollection.d.ts +32 -0
  11. package/dist/catalog/functions/editProduct.d.ts +36 -0
  12. package/dist/catalog/functions/getCollections.d.ts +31 -0
  13. package/dist/catalog/functions/getProductById.d.ts +28 -0
  14. package/dist/catalog/functions/getProducts.d.ts +27 -0
  15. package/dist/catalog/functions/index.d.ts +14 -0
  16. package/dist/catalog/functions/removeProductImage.d.ts +29 -0
  17. package/dist/catalog/functions/setProductVisibility.d.ts +30 -0
  18. package/dist/catalog/functions/updateCartEnabled.d.ts +30 -0
  19. package/dist/chat/functions/canMarkPlayed.d.ts +27 -0
  20. package/dist/chat/functions/getMessages.d.ts +25 -0
  21. package/dist/chat/functions/getPlatformFromMessage.d.ts +34 -0
  22. package/dist/chat/functions/index.d.ts +3 -0
  23. package/dist/chat/functions/markPlayed.d.ts +27 -0
  24. package/dist/contact/functions/getBusinessProfile.d.ts +27 -0
  25. package/dist/contact/functions/index.d.ts +1 -0
  26. package/dist/labels/functions/getLabelById.d.ts +17 -0
  27. package/dist/labels/functions/index.d.ts +1 -0
  28. package/dist/profile/functions/editBusinessProfile.d.ts +177 -0
  29. package/dist/profile/functions/index.d.ts +1 -0
  30. package/dist/status/functions/index.d.ts +1 -0
  31. package/dist/status/functions/sendReadStatus.d.ts +25 -0
  32. package/dist/whatsapp/collections/CatalogCollection.d.ts +3 -1
  33. package/dist/whatsapp/functions/calculateFilehashFromBlob.d.ts +19 -0
  34. package/dist/whatsapp/functions/collections.d.ts +37 -0
  35. package/dist/whatsapp/functions/editBusinessProfile.d.ts +20 -0
  36. package/dist/whatsapp/functions/index.d.ts +5 -0
  37. package/dist/whatsapp/functions/markSeen.d.ts +2 -1
  38. package/dist/whatsapp/functions/msgFindQuery.d.ts +2 -1
  39. package/dist/whatsapp/functions/productVisibilitySet.d.ts +21 -0
  40. package/dist/whatsapp/functions/products.d.ts +5 -0
  41. package/dist/whatsapp/functions/updateCartEnabled.d.ts +19 -0
  42. package/dist/whatsapp/misc/ProductCatalogSession.d.ts +27 -0
  43. package/dist/whatsapp/misc/index.d.ts +1 -0
  44. package/dist/whatsapp/models/CatalogModel.d.ts +2 -0
  45. package/dist/whatsapp/models/ProductCollModel.d.ts +4 -0
  46. package/dist/whatsapp/models/ProductModel.d.ts +2 -1
  47. package/dist/wppconnect-wa.js +1 -1
  48. package/package.json +9 -9
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { BusinessProfileModel, Wid } from '../../whatsapp';
17
+ /**
18
+ * Get the current text status
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * const url = await WPP.contact.getBusinessProfile('[number]@c.us');
23
+ * ```
24
+ *
25
+ * @category Contact
26
+ */
27
+ export declare function getBusinessProfile(contactId: string | Wid): Promise<BusinessProfileModel>;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ export { getBusinessProfile } from './getBusinessProfile';
16
17
  export { getProfilePictureUrl } from './getProfilePictureUrl';
17
18
  export { getStatus } from './getStatus';
18
19
  export { ContactListOptions, list } from './list';
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * Copyright 2022 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Label } from '..';
17
+ export declare function getLabelById(labelId: string): Promise<Label>;
@@ -19,5 +19,6 @@ export { colorIsInLabelPalette } from './colorIsInLabelPalette';
19
19
  export { deleteAllLabels } from './deleteAllLabels';
20
20
  export { deleteLabel, DeleteLabelReturn } from './deleteLabel';
21
21
  export { getAllLabels } from './getAllLabels';
22
+ export { getLabelById } from './getLabelById';
22
23
  export { getLabelColorPalette } from './getLabelColorPalette';
23
24
  export { getNewLabelColor } from './getNewLabelColor';
@@ -0,0 +1,177 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { BusinessProfileModel } from '../../whatsapp';
17
+ /**
18
+ * Update your business profile
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * await WPP.profile.editBusinessProfile({description: 'New description for profile'});
23
+ * ```
24
+ *
25
+ * ```javascript
26
+ * await WPP.profile.editBusinessProfile({categories: {
27
+ id: "133436743388217",
28
+ localized_display_name: "Artes e entretenimento",
29
+ not_a_biz: false,
30
+ }});
31
+ * ```
32
+ *
33
+ * ```javascript
34
+ * await WPP.profile.editBusinessProfile({adress: 'Street 01, New York'});
35
+ * ```
36
+ *
37
+ * ```javascript
38
+ * await WPP.profile.editBusinessProfile({adress: 'Street 01, New York'});
39
+ * ```
40
+ *
41
+ * ```javascript
42
+ * await WPP.profile.editBusinessProfile({email: 'test@test.com.br'});
43
+ * ```
44
+ *
45
+ * Change website of profile (max 2 sites)
46
+ * ```javascript
47
+ * await WPP.profile.editBusinessProfile({website: [
48
+ "https://www.wppconnect.io",
49
+ "https://www.teste2.com.br",
50
+ ]});
51
+ * ```
52
+ *
53
+ * Change businessHours for Specific Hours
54
+ * ```javascript
55
+ * await WPP.profile.editBusinessProfile({ businessHours: {
56
+ * {
57
+ tue: {
58
+ mode: "specific_hours",
59
+ hours: [
60
+ [
61
+ 540,
62
+ 1080,
63
+ ],
64
+ ],
65
+ },
66
+ wed: {
67
+ mode: "specific_hours",
68
+ hours: [
69
+ [
70
+ 540,
71
+ 1080,
72
+ ],
73
+ ],
74
+ },
75
+ thu: {
76
+ mode: "specific_hours",
77
+ hours: [
78
+ [
79
+ 540,
80
+ 1080,
81
+ ],
82
+ ],
83
+ },
84
+ fri: {
85
+ mode: "specific_hours",
86
+ hours: [
87
+ [
88
+ 540,
89
+ 1080,
90
+ ],
91
+ ],
92
+ },
93
+ sat: {
94
+ mode: "specific_hours",
95
+ hours: [
96
+ [
97
+ 540,
98
+ 1080,
99
+ ],
100
+ ],
101
+ },
102
+ sun: {
103
+ mode: "specific_hours",
104
+ hours: [
105
+ [
106
+ 540,
107
+ 1080,
108
+ ],
109
+ ],
110
+ },
111
+ }
112
+ },
113
+ timezone: "America/Sao_Paulo"
114
+ });
115
+ *
116
+ * Change businessHours for Always Opened
117
+ * ```javascript
118
+ * await WPP.profile.editBusinessProfile({ businessHours: {
119
+ {
120
+ mon: {
121
+ mode: "open_24h",
122
+ },
123
+ tue: {
124
+ mode: "open_24h",
125
+ },
126
+ wed: {
127
+ mode: "open_24h",
128
+ },
129
+ thu: {
130
+ mode: "open_24h",
131
+ },
132
+ fri: {
133
+ mode: "open_24h",
134
+ },
135
+ sat: {
136
+ mode: "open_24h",
137
+ },
138
+ sun: {
139
+ mode: "open_24h",
140
+ },
141
+ }
142
+ timezone: "America/Sao_Paulo"
143
+ });
144
+ *
145
+ * Change businessHours for Appointment Only
146
+ * ```javascript
147
+ * await WPP.profile.editBusinessProfile({ businessHours: { {
148
+ mon: {
149
+ mode: "appointment_only",
150
+ },
151
+ tue: {
152
+ mode: "appointment_only",
153
+ },
154
+ wed: {
155
+ mode: "appointment_only",
156
+ },
157
+ thu: {
158
+ mode: "appointment_only",
159
+ },
160
+ fri: {
161
+ mode: "appointment_only",
162
+ },
163
+ sat: {
164
+ mode: "appointment_only",
165
+ },
166
+ sun: {
167
+ mode: "appointment_only",
168
+ },
169
+ }
170
+ timezone: "America/Sao_Paulo"
171
+ });
172
+ *
173
+ *
174
+ * ```
175
+ * @category Profile
176
+ */
177
+ export declare function editBusinessProfile(params: BusinessProfileModel): Promise<any>;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ export { editBusinessProfile } from './editBusinessProfile';
16
17
  export { getMyStatus } from './getMyStatus';
17
18
  export { isBusiness } from './isBusiness';
18
19
  export { setMyProfilePicture } from './setMyProfilePicture';
@@ -17,5 +17,6 @@ export { get } from './get';
17
17
  export { getMyStatus } from './getMyStatus';
18
18
  export { ImageStatusOptions, sendImageStatus } from './sendImageStatus';
19
19
  export { sendRawStatus, SendStatusOptions } from './sendRawStatus';
20
+ export { sendReadStatus } from './sendReadStatus';
20
21
  export { sendTextStatus, TextStatusOptions } from './sendTextStatus';
21
22
  export { sendVideoStatus, VideoStatusOptions } from './sendVideoStatus';
@@ -0,0 +1,25 @@
1
+ /*!
2
+ * Copyright 2022 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Mark status as read/seen
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * WPP.status.sendReadStatus('[phone_number]@c.us', 'false_status@broadcast_3A169E0FD4BC6E92212F_5521526232927@c.us');
23
+ * ```
24
+ */
25
+ export declare function sendReadStatus(chatId: string | Wid, statusId: string): Promise<any>;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { Wid } from '../misc';
16
17
  import { CatalogModel } from '../models';
17
18
  import { Collection } from './Collection';
18
19
  /** @whatsapp 99989
@@ -25,9 +26,10 @@ export declare class CatalogCollection extends Collection<CatalogModel> {
25
26
  findProduct(e?: {
26
27
  catalogWid: any;
27
28
  productId: any;
28
- productMsgMediaData: any;
29
+ productMsgMediaData?: any;
29
30
  }): any;
30
31
  findCarouselCatalog(e?: any): any;
31
32
  findNextProductPage(e?: any): any;
32
33
  findCollectionMembership(e?: any, t?: any): any;
34
+ _queryCatalog(e?: CatalogModel, t?: Wid, n?: any, r?: any, a?: any, o?: any): any;
33
35
  }
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * Copyright 2022 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * @whatsapp 818309 >= 2.2228.14
18
+ */
19
+ export declare function calculateFilehashFromBlob(file: Blob): Promise<string>;
@@ -0,0 +1,37 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '../misc';
17
+ /** @whatsapp 409465 >= 2.2228.14
18
+ */
19
+ export declare function createCollection(...args: any[]): Promise<any>;
20
+ /** @whatsapp 409465 >= 2.2228.14
21
+ */
22
+ export declare function deleteCollection(id: string, sessionId: string): Promise<any>;
23
+ /** @whatsapp 409465 >= 2.2228.14
24
+ */
25
+ export declare function editCollection(collectionId: string, collectionName: string | undefined, collectionBoolea: boolean, productsToAdd: string[], productsToRemove: string[], sessionId: string): Promise<any>;
26
+ export interface QueryCollectionsIQtParams {
27
+ afterCursor?: string;
28
+ catalogWid?: Wid;
29
+ directConnectionEncryptedInfo?: any;
30
+ height?: 100;
31
+ width?: 100;
32
+ limit: number;
33
+ productsCount?: number;
34
+ }
35
+ /** @whatsapp 409465 >= 2.2228.14
36
+ */
37
+ export declare function queryCollectionsIQ(params: QueryCollectionsIQtParams): any;
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { BusinessProfileModel } from '../models';
17
+ /**
18
+ * @whatsapp 461561
19
+ */
20
+ export declare function editBusinessProfile(arguments: BusinessProfileModel): Promise<any>;
@@ -15,8 +15,11 @@
15
15
  */
16
16
  export * from './addAndSendMsgToChat';
17
17
  export * from './blockContact';
18
+ export * from './calculateFilehashFromBlob';
19
+ export * from './collections';
18
20
  export * from './createMsgProtobuf';
19
21
  export * from './createOrUpdateReactions';
22
+ export * from './editBusinessProfile';
20
23
  export * from './encodeMaybeMediaType';
21
24
  export * from './encryptAndSendGroupMsg';
22
25
  export * from './encryptAndSendMsg';
@@ -36,6 +39,7 @@ export * from './markSeen';
36
39
  export * from './mediaTypeFromProtobuf';
37
40
  export * from './msgFindQuery';
38
41
  export * from './products';
42
+ export * from './productVisibilitySet';
39
43
  export * from './profilePic';
40
44
  export * from './randomHex';
41
45
  export * from './randomId';
@@ -56,6 +60,7 @@ export * from './setGroup';
56
60
  export * from './setPin';
57
61
  export * from './status';
58
62
  export * from './typeAttributeFromProtobuf';
63
+ export * from './updateCartEnabled';
59
64
  export * from './updateDBForGroupAction';
60
65
  export * from './updateParticipants';
61
66
  export * from './uploadProductImage';
@@ -28,6 +28,7 @@ export declare function sendSeen(chat: ChatModel, whenAvailable: boolean): Promi
28
28
  */
29
29
  export declare function markPlayed(msg: MsgModel): Promise<void>;
30
30
  /**
31
- * @whatsapp 2.2146.9:64850
31
+ * @whatsapp 64850
32
+ * @whatsapp 242050 >= 2.2228.4
32
33
  */
33
34
  export declare function canMarkPlayed(msg: MsgModel): boolean;
@@ -22,6 +22,7 @@ export interface MsgFindQueryParams {
22
22
  fromMe?: boolean;
23
23
  id?: string;
24
24
  participant?: any;
25
+ media?: 'url' | 'document';
25
26
  }
26
27
  /** @whatsapp 76581 */
27
- export declare function msgFindQuery(direction: 'after' | 'before', params: MsgFindQueryParams): Promise<ModelPropertiesContructor<MsgModel>[]>;
28
+ export declare function msgFindQuery(direction: 'after' | 'before' | 'media', params: MsgFindQueryParams): Promise<ModelPropertiesContructor<MsgModel>[] | any>;
@@ -0,0 +1,21 @@
1
+ /*!
2
+ * Copyright 2022 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export interface ProductVisibilitySetParams {
17
+ isHidden: boolean;
18
+ productId: number;
19
+ }
20
+ /** @whatsapp 621374 >= 2.2228.14 */
21
+ export declare function productVisibilitySet(params: ProductVisibilitySetParams[]): any;
@@ -14,6 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ProductModel } from '..';
17
+ import { Wid } from '../misc';
17
18
  /** @whatsapp 2.2144.10:35339 */
18
19
  export declare function createBusinessCatalog(): Promise<any>;
19
20
  /** @whatsapp 96519
@@ -36,3 +37,7 @@ export declare function deleteProducts(productIds: string[]): Promise<any>;
36
37
  * @whatsapp 895697 >= 2.2228.4
37
38
  */
38
39
  export declare function sendProductToChat(...args: any[]): Promise<any>;
40
+ /** @whatsapp 621374 >= 2.2228.14 */
41
+ export declare function queryCatalog(chatId?: Wid, t?: any, n?: number, r?: number, i?: number, s?: any, l?: any): any;
42
+ /** @whatsapp 621374 >= 2.2228.14 */
43
+ export declare function queryProduct(chatId?: Wid, productId?: any, imageWidth?: number, imageHeight?: number, i?: any, s?: boolean, l?: any): any;
@@ -0,0 +1,19 @@
1
+ /*!
2
+ * Copyright 2022 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * @whatsapp 990553
18
+ */
19
+ export declare function updateCartEnabled(enabled: boolean): Promise<void>;
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * Copyright 2022 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * @whatsapp 409153 >= 2.2228.14
18
+ */
19
+ export declare class ProductCatalogSession {
20
+ constructor(e: any);
21
+ accidental?: boolean;
22
+ sessionId?: number | string;
23
+ isAccidental(): boolean;
24
+ initSessionId(): number;
25
+ newSessionId(): number;
26
+ toString(): string;
27
+ }
@@ -33,6 +33,7 @@ export * from './MediaUtils';
33
33
  export * from './MsgKey';
34
34
  export * from './MsgLoadState';
35
35
  export * from './OpaqueData';
36
+ export * from './ProductCatalogSession';
36
37
  export * from './Socket';
37
38
  export * from './Stream';
38
39
  export * from './UserPrefs';
@@ -39,6 +39,8 @@ export declare interface CatalogModel extends ModelProxy<Props, Session, Derived
39
39
  export declare class CatalogModel extends Model<CatalogCollection> {
40
40
  idClass: typeof Wid;
41
41
  constructor(proterties?: ModelPropertiesContructor<CatalogModel>, options?: ModelOptions);
42
+ productCollection: ProductModel[];
43
+ collections: any;
42
44
  triggerProductUpdate(): any;
43
45
  triggerMsgUpdate(): any;
44
46
  markProductCollectionOld(): any;
@@ -16,10 +16,14 @@
16
16
  import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
17
17
  interface Props {
18
18
  id?: any;
19
+ name?: string;
19
20
  isHidden: boolean;
20
21
  reviewStatus?: any;
22
+ commerceUrl?: any;
23
+ rejectReason?: any;
21
24
  totalItemsCount?: any;
22
25
  afterCursor?: any;
26
+ canAppeal?: any;
23
27
  }
24
28
  interface Session {
25
29
  stale?: any;
@@ -16,9 +16,10 @@
16
16
  import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
17
17
  interface Props {
18
18
  id?: any;
19
- isHidden: boolean;
19
+ isHidden?: boolean;
20
20
  catalogWid?: any;
21
21
  url?: any;
22
+ name?: string;
22
23
  description?: any;
23
24
  availability?: any;
24
25
  reviewStatus?: any;