@wppconnect/wa-js 3.4.0 → 3.4.1

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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- # 3.4.0 (2024-06-21)
1
+ ## 3.4.1 (2024-06-24)
2
2
 
3
3
 
4
4
 
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { MsgKey } from '../../whatsapp';
16
+ import { MsgKey, OrderModel } from '../../whatsapp';
17
17
  /**
18
- * Get info of your sended order
18
+ * Get info of a order
19
19
  *
20
20
  * @example
21
21
  * ```javascript
@@ -24,4 +24,4 @@ import { MsgKey } from '../../whatsapp';
24
24
  *
25
25
  * @return Your current catalog
26
26
  */
27
- export declare function get(msgId: string | MsgKey): Promise<boolean>;
27
+ export declare function get(msgId: string | MsgKey): Promise<OrderModel>;
@@ -101,6 +101,7 @@ export * from './profilePic';
101
101
  export * from './queryAllGroups';
102
102
  export * from './queryGroupInviteCode';
103
103
  export * from './queryNewsletterMetadataByJid';
104
+ export * from './queryOrder';
104
105
  export * from './randomHex';
105
106
  export * from './randomId';
106
107
  export * from './resetGroupInviteCode';
@@ -0,0 +1,32 @@
1
+ /*!
2
+ * Copyright 2024 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
+ /** @whatsapp WAWebBizQueryOrderJob >= 2.30000.0 */
17
+ export declare function queryOrder(productId: string, imageWidth: number, imageHeight: number, token: string, e?: any): Promise<{
18
+ currency: string;
19
+ createdAt: number;
20
+ products: {
21
+ id: string;
22
+ price: number;
23
+ thumbnailId: string;
24
+ thumbnailUrl: string;
25
+ currency: string;
26
+ name: string;
27
+ quantity: number;
28
+ }[];
29
+ subtotal: number;
30
+ total: number;
31
+ tax: number | null;
32
+ }>;