bukku-client 0.1.0-test.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.
- package/LICENSE +674 -0
- package/README.md +85 -0
- package/dist/accounting/accounts/index.d.ts +52 -0
- package/dist/accounting/accounts/index.d.ts.map +1 -0
- package/dist/accounting/accounts/index.js +72 -0
- package/dist/accounting/accounts/index.js.map +1 -0
- package/dist/accounting/accounts/type.d.ts +125 -0
- package/dist/accounting/accounts/type.d.ts.map +1 -0
- package/dist/accounting/accounts/type.js +4 -0
- package/dist/accounting/accounts/type.js.map +1 -0
- package/dist/accounting/index.d.ts +10 -0
- package/dist/accounting/index.d.ts.map +1 -0
- package/dist/accounting/index.js +16 -0
- package/dist/accounting/index.js.map +1 -0
- package/dist/accounting/journal-entries/index.d.ts +52 -0
- package/dist/accounting/journal-entries/index.d.ts.map +1 -0
- package/dist/accounting/journal-entries/index.js +72 -0
- package/dist/accounting/journal-entries/index.js.map +1 -0
- package/dist/accounting/journal-entries/type.d.ts +151 -0
- package/dist/accounting/journal-entries/type.d.ts.map +1 -0
- package/dist/accounting/journal-entries/type.js +4 -0
- package/dist/accounting/journal-entries/type.js.map +1 -0
- package/dist/common/type.d.ts +105 -0
- package/dist/common/type.d.ts.map +1 -0
- package/dist/common/type.js +3 -0
- package/dist/common/type.js.map +1 -0
- package/dist/contacts/contacts/index.d.ts +57 -0
- package/dist/contacts/contacts/index.d.ts.map +1 -0
- package/dist/contacts/contacts/index.js +82 -0
- package/dist/contacts/contacts/index.js.map +1 -0
- package/dist/contacts/contacts/type.d.ts +286 -0
- package/dist/contacts/contacts/type.d.ts.map +1 -0
- package/dist/contacts/contacts/type.js +4 -0
- package/dist/contacts/contacts/type.js.map +1 -0
- package/dist/contacts/groups/index.d.ts +42 -0
- package/dist/contacts/groups/index.d.ts.map +1 -0
- package/dist/contacts/groups/index.js +59 -0
- package/dist/contacts/groups/index.js.map +1 -0
- package/dist/contacts/groups/type.d.ts +34 -0
- package/dist/contacts/groups/type.d.ts.map +1 -0
- package/dist/contacts/groups/type.js +4 -0
- package/dist/contacts/groups/type.js.map +1 -0
- package/dist/contacts/index.d.ts +10 -0
- package/dist/contacts/index.d.ts.map +1 -0
- package/dist/contacts/index.js +15 -0
- package/dist/contacts/index.js.map +1 -0
- package/dist/control-panel/index.d.ts +15 -0
- package/dist/control-panel/index.d.ts.map +1 -0
- package/dist/control-panel/index.js +35 -0
- package/dist/control-panel/index.js.map +1 -0
- package/dist/control-panel/locations/index.d.ts +51 -0
- package/dist/control-panel/locations/index.d.ts.map +1 -0
- package/dist/control-panel/locations/index.js +70 -0
- package/dist/control-panel/locations/index.js.map +1 -0
- package/dist/control-panel/locations/type.d.ts +91 -0
- package/dist/control-panel/locations/type.d.ts.map +1 -0
- package/dist/control-panel/locations/type.js +4 -0
- package/dist/control-panel/locations/type.js.map +1 -0
- package/dist/control-panel/tag-groups/index.d.ts +44 -0
- package/dist/control-panel/tag-groups/index.d.ts.map +1 -0
- package/dist/control-panel/tag-groups/index.js +63 -0
- package/dist/control-panel/tag-groups/index.js.map +1 -0
- package/dist/control-panel/tag-groups/type.d.ts +64 -0
- package/dist/control-panel/tag-groups/type.d.ts.map +1 -0
- package/dist/control-panel/tag-groups/type.js +4 -0
- package/dist/control-panel/tag-groups/type.js.map +1 -0
- package/dist/control-panel/tags/index.d.ts +43 -0
- package/dist/control-panel/tags/index.d.ts.map +1 -0
- package/dist/control-panel/tags/index.js +60 -0
- package/dist/control-panel/tags/index.js.map +1 -0
- package/dist/control-panel/tags/type.d.ts +60 -0
- package/dist/control-panel/tags/type.d.ts.map +1 -0
- package/dist/control-panel/tags/type.js +4 -0
- package/dist/control-panel/tags/type.js.map +1 -0
- package/dist/files/index.d.ts +29 -0
- package/dist/files/index.d.ts.map +1 -0
- package/dist/files/index.js +42 -0
- package/dist/files/index.js.map +1 -0
- package/dist/files/type.d.ts +50 -0
- package/dist/files/type.d.ts.map +1 -0
- package/dist/files/type.js +4 -0
- package/dist/files/type.js.map +1 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +130 -0
- package/dist/index.js.map +1 -0
- package/dist/lists/index.d.ts +24 -0
- package/dist/lists/index.d.ts.map +1 -0
- package/dist/lists/index.js +33 -0
- package/dist/lists/index.js.map +1 -0
- package/dist/lists/type.d.ts +781 -0
- package/dist/lists/type.d.ts.map +1 -0
- package/dist/lists/type.js +3 -0
- package/dist/lists/type.js.map +1 -0
- package/dist/products/groups/index.d.ts +42 -0
- package/dist/products/groups/index.d.ts.map +1 -0
- package/dist/products/groups/index.js +59 -0
- package/dist/products/groups/index.js.map +1 -0
- package/dist/products/groups/type.d.ts +53 -0
- package/dist/products/groups/type.d.ts.map +1 -0
- package/dist/products/groups/type.js +5 -0
- package/dist/products/groups/type.js.map +1 -0
- package/dist/products/index.d.ts +10 -0
- package/dist/products/index.d.ts.map +1 -0
- package/dist/products/index.js +15 -0
- package/dist/products/index.js.map +1 -0
- package/dist/products/products/index.d.ts +51 -0
- package/dist/products/products/index.d.ts.map +1 -0
- package/dist/products/products/index.js +70 -0
- package/dist/products/products/index.js.map +1 -0
- package/dist/products/products/type.d.ts +270 -0
- package/dist/products/products/type.d.ts.map +1 -0
- package/dist/products/products/type.js +4 -0
- package/dist/products/products/type.js.map +1 -0
- package/dist/purchases/bills/index.d.ts +51 -0
- package/dist/purchases/bills/index.d.ts.map +1 -0
- package/dist/purchases/bills/index.js +75 -0
- package/dist/purchases/bills/index.js.map +1 -0
- package/dist/purchases/bills/type.d.ts +254 -0
- package/dist/purchases/bills/type.d.ts.map +1 -0
- package/dist/purchases/bills/type.js +4 -0
- package/dist/purchases/bills/type.js.map +1 -0
- package/dist/purchases/credit-notes/index.d.ts +51 -0
- package/dist/purchases/credit-notes/index.d.ts.map +1 -0
- package/dist/purchases/credit-notes/index.js +71 -0
- package/dist/purchases/credit-notes/index.js.map +1 -0
- package/dist/purchases/credit-notes/type.d.ts +204 -0
- package/dist/purchases/credit-notes/type.d.ts.map +1 -0
- package/dist/purchases/credit-notes/type.js +4 -0
- package/dist/purchases/credit-notes/type.js.map +1 -0
- package/dist/purchases/goods-received-notes/index.d.ts +51 -0
- package/dist/purchases/goods-received-notes/index.d.ts.map +1 -0
- package/dist/purchases/goods-received-notes/index.js +71 -0
- package/dist/purchases/goods-received-notes/index.js.map +1 -0
- package/dist/purchases/goods-received-notes/type.d.ts +184 -0
- package/dist/purchases/goods-received-notes/type.d.ts.map +1 -0
- package/dist/purchases/goods-received-notes/type.js +4 -0
- package/dist/purchases/goods-received-notes/type.js.map +1 -0
- package/dist/purchases/index.d.ts +18 -0
- package/dist/purchases/index.d.ts.map +1 -0
- package/dist/purchases/index.js +23 -0
- package/dist/purchases/index.js.map +1 -0
- package/dist/purchases/payments/index.d.ts +51 -0
- package/dist/purchases/payments/index.d.ts.map +1 -0
- package/dist/purchases/payments/index.js +71 -0
- package/dist/purchases/payments/index.js.map +1 -0
- package/dist/purchases/payments/type.d.ts +183 -0
- package/dist/purchases/payments/type.d.ts.map +1 -0
- package/dist/purchases/payments/type.js +4 -0
- package/dist/purchases/payments/type.js.map +1 -0
- package/dist/purchases/purchase-orders/index.d.ts +51 -0
- package/dist/purchases/purchase-orders/index.d.ts.map +1 -0
- package/dist/purchases/purchase-orders/index.js +71 -0
- package/dist/purchases/purchase-orders/index.js.map +1 -0
- package/dist/purchases/purchase-orders/type.d.ts +182 -0
- package/dist/purchases/purchase-orders/type.d.ts.map +1 -0
- package/dist/purchases/purchase-orders/type.js +4 -0
- package/dist/purchases/purchase-orders/type.js.map +1 -0
- package/dist/purchases/refunds/index.d.ts +51 -0
- package/dist/purchases/refunds/index.d.ts.map +1 -0
- package/dist/purchases/refunds/index.js +71 -0
- package/dist/purchases/refunds/index.js.map +1 -0
- package/dist/purchases/refunds/type.d.ts +181 -0
- package/dist/purchases/refunds/type.d.ts.map +1 -0
- package/dist/purchases/refunds/type.js +4 -0
- package/dist/purchases/refunds/type.js.map +1 -0
- package/dist/sales/credit-notes/index.d.ts +52 -0
- package/dist/sales/credit-notes/index.d.ts.map +1 -0
- package/dist/sales/credit-notes/index.js +72 -0
- package/dist/sales/credit-notes/index.js.map +1 -0
- package/dist/sales/credit-notes/type.d.ts +304 -0
- package/dist/sales/credit-notes/type.d.ts.map +1 -0
- package/dist/sales/credit-notes/type.js +4 -0
- package/dist/sales/credit-notes/type.js.map +1 -0
- package/dist/sales/delivery-orders/index.d.ts +51 -0
- package/dist/sales/delivery-orders/index.d.ts.map +1 -0
- package/dist/sales/delivery-orders/index.js +72 -0
- package/dist/sales/delivery-orders/index.js.map +1 -0
- package/dist/sales/delivery-orders/type.d.ts +212 -0
- package/dist/sales/delivery-orders/type.d.ts.map +1 -0
- package/dist/sales/delivery-orders/type.js +4 -0
- package/dist/sales/delivery-orders/type.js.map +1 -0
- package/dist/sales/index.d.ts +20 -0
- package/dist/sales/index.d.ts.map +1 -0
- package/dist/sales/index.js +24 -0
- package/dist/sales/index.js.map +1 -0
- package/dist/sales/invoices/index.d.ts +52 -0
- package/dist/sales/invoices/index.d.ts.map +1 -0
- package/dist/sales/invoices/index.js +73 -0
- package/dist/sales/invoices/index.js.map +1 -0
- package/dist/sales/invoices/type.d.ts +335 -0
- package/dist/sales/invoices/type.d.ts.map +1 -0
- package/dist/sales/invoices/type.js +4 -0
- package/dist/sales/invoices/type.js.map +1 -0
- package/dist/sales/payments/index.d.ts +52 -0
- package/dist/sales/payments/index.d.ts.map +1 -0
- package/dist/sales/payments/index.js +72 -0
- package/dist/sales/payments/index.js.map +1 -0
- package/dist/sales/payments/type.d.ts +242 -0
- package/dist/sales/payments/type.d.ts.map +1 -0
- package/dist/sales/payments/type.js +4 -0
- package/dist/sales/payments/type.js.map +1 -0
- package/dist/sales/quotations/index.d.ts +51 -0
- package/dist/sales/quotations/index.d.ts.map +1 -0
- package/dist/sales/quotations/index.js +71 -0
- package/dist/sales/quotations/index.js.map +1 -0
- package/dist/sales/quotations/type.d.ts +202 -0
- package/dist/sales/quotations/type.d.ts.map +1 -0
- package/dist/sales/quotations/type.js +3 -0
- package/dist/sales/quotations/type.js.map +1 -0
- package/dist/sales/refunds/index.d.ts +52 -0
- package/dist/sales/refunds/index.d.ts.map +1 -0
- package/dist/sales/refunds/index.js +72 -0
- package/dist/sales/refunds/index.js.map +1 -0
- package/dist/sales/refunds/type.d.ts +225 -0
- package/dist/sales/refunds/type.d.ts.map +1 -0
- package/dist/sales/refunds/type.js +4 -0
- package/dist/sales/refunds/type.js.map +1 -0
- package/dist/sales/sales-orders/index.d.ts +52 -0
- package/dist/sales/sales-orders/index.d.ts.map +1 -0
- package/dist/sales/sales-orders/index.js +72 -0
- package/dist/sales/sales-orders/index.js.map +1 -0
- package/dist/sales/sales-orders/type.d.ts +202 -0
- package/dist/sales/sales-orders/type.d.ts.map +1 -0
- package/dist/sales/sales-orders/type.js +4 -0
- package/dist/sales/sales-orders/type.js.map +1 -0
- package/dist/types.d.ts +17 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/purchases/bills/type.ts"],"names":[],"mappings":"AAEA,OAAO,EACc,wDAAwD;AAC3E,mBAAmB,EAAE,oBAAoB;AACzC,yBAAyB,EAAE,eAAe;AAC1C,mBAAmB,EACnB,aAAa,EACd,MAAM,mBAAmB,CAAC;AAE3B;;;GAGG;AACH,MAAM,WAAW,6BAA6B;IAC5C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,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@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { BukkuAPIRequestFunction } from "../../types";
|
|
2
|
+
import { BukkuCreditNote, BukkuCreditNoteCreateParams, BukkuCreditNoteListParams, BukkuCreditNoteListApiResponse, BukkuCreditNoteUpdateParams, BukkuCreditNoteStatusUpdateParams } from "./type";
|
|
3
|
+
export declare class CreditNotesAPI {
|
|
4
|
+
private _request;
|
|
5
|
+
constructor(_request: BukkuAPIRequestFunction);
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new credit note.
|
|
8
|
+
* Endpoint: POST /purchases/credit_notes
|
|
9
|
+
* @param data - The data for the new credit note.
|
|
10
|
+
* @returns A promise that resolves to the created credit note.
|
|
11
|
+
*/
|
|
12
|
+
create(data: BukkuCreditNoteCreateParams): Promise<BukkuCreditNote>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves a paginated list of credit notes.
|
|
15
|
+
* Endpoint: GET /purchases/credit_notes
|
|
16
|
+
* @param params - Optional parameters for filtering and pagination.
|
|
17
|
+
* @returns A promise that resolves to the API response for listing credit notes.
|
|
18
|
+
*/
|
|
19
|
+
list(params?: BukkuCreditNoteListParams): Promise<BukkuCreditNoteListApiResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a specific credit note by its ID.
|
|
22
|
+
* Endpoint: GET /purchases/credit_notes/{id}
|
|
23
|
+
* @param id - The ID of the credit note to retrieve.
|
|
24
|
+
* @returns A promise that resolves to the credit note.
|
|
25
|
+
*/
|
|
26
|
+
get(id: string | number): Promise<BukkuCreditNote>;
|
|
27
|
+
/**
|
|
28
|
+
* Updates an existing credit note.
|
|
29
|
+
* Endpoint: PUT /purchases/credit_notes/{id}
|
|
30
|
+
* @param id - The ID of the credit note to update.
|
|
31
|
+
* @param data - The data to update the credit note with.
|
|
32
|
+
* @returns A promise that resolves to the updated credit note.
|
|
33
|
+
*/
|
|
34
|
+
update(id: string | number, data: BukkuCreditNoteUpdateParams): Promise<BukkuCreditNote>;
|
|
35
|
+
/**
|
|
36
|
+
* Updates the status of an existing credit note.
|
|
37
|
+
* Endpoint: PATCH /purchases/credit_notes/{id}
|
|
38
|
+
* @param id - The ID of the credit note to update.
|
|
39
|
+
* @param data - The data containing the new status.
|
|
40
|
+
* @returns A promise that resolves to the updated credit note.
|
|
41
|
+
*/
|
|
42
|
+
updateStatus(id: string | number, data: BukkuCreditNoteStatusUpdateParams): Promise<BukkuCreditNote>;
|
|
43
|
+
/**
|
|
44
|
+
* Deletes a credit note.
|
|
45
|
+
* Endpoint: DELETE /purchases/credit_notes/{id}
|
|
46
|
+
* @param id - The ID of the credit note to delete.
|
|
47
|
+
* @returns A promise that resolves when the credit note is deleted.
|
|
48
|
+
*/
|
|
49
|
+
delete(id: string | number): Promise<void>;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/purchases/credit-notes/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,eAAe,EACf,2BAA2B,EAE3B,yBAAyB,EACzB,8BAA8B,EAC9B,2BAA2B,EAC3B,iCAAiC,EAClC,MAAM,QAAQ,CAAC;AAEhB,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ;gBAAR,QAAQ,EAAE,uBAAuB;IAErD;;;;;OAKG;IACG,MAAM,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IASzE;;;;;OAKG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,8BAA8B,CAAC;IASvF;;;;;OAKG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAQxD;;;;;;OAMG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAS9F;;;;;;OAMG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,iCAAiC,GAAG,OAAO,CAAC,eAAe,CAAC;IAS1G;;;;;OAKG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjD"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// src/purchases/credit-notes/index.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreditNotesAPI = void 0;
|
|
5
|
+
class CreditNotesAPI {
|
|
6
|
+
constructor(_request) {
|
|
7
|
+
this._request = _request;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new credit note.
|
|
11
|
+
* Endpoint: POST /purchases/credit_notes
|
|
12
|
+
* @param data - The data for the new credit note.
|
|
13
|
+
* @returns A promise that resolves to the created credit note.
|
|
14
|
+
*/
|
|
15
|
+
async create(data) {
|
|
16
|
+
const response = await this._request("/purchases/credit_notes", "POST", data);
|
|
17
|
+
return response.transaction;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves a paginated list of credit notes.
|
|
21
|
+
* Endpoint: GET /purchases/credit_notes
|
|
22
|
+
* @param params - Optional parameters for filtering and pagination.
|
|
23
|
+
* @returns A promise that resolves to the API response for listing credit notes.
|
|
24
|
+
*/
|
|
25
|
+
async list(params) {
|
|
26
|
+
return this._request("/purchases/credit_notes", "GET", undefined, params);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves a specific credit note by its ID.
|
|
30
|
+
* Endpoint: GET /purchases/credit_notes/{id}
|
|
31
|
+
* @param id - The ID of the credit note to retrieve.
|
|
32
|
+
* @returns A promise that resolves to the credit note.
|
|
33
|
+
*/
|
|
34
|
+
async get(id) {
|
|
35
|
+
const response = await this._request(`/purchases/credit_notes/${id}`, "GET");
|
|
36
|
+
return response.transaction;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Updates an existing credit note.
|
|
40
|
+
* Endpoint: PUT /purchases/credit_notes/{id}
|
|
41
|
+
* @param id - The ID of the credit note to update.
|
|
42
|
+
* @param data - The data to update the credit note with.
|
|
43
|
+
* @returns A promise that resolves to the updated credit note.
|
|
44
|
+
*/
|
|
45
|
+
async update(id, data) {
|
|
46
|
+
const response = await this._request(`/purchases/credit_notes/${id}`, "PUT", data);
|
|
47
|
+
return response.transaction;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Updates the status of an existing credit note.
|
|
51
|
+
* Endpoint: PATCH /purchases/credit_notes/{id}
|
|
52
|
+
* @param id - The ID of the credit note to update.
|
|
53
|
+
* @param data - The data containing the new status.
|
|
54
|
+
* @returns A promise that resolves to the updated credit note.
|
|
55
|
+
*/
|
|
56
|
+
async updateStatus(id, data) {
|
|
57
|
+
const response = await this._request(`/purchases/credit_notes/${id}`, "PATCH", data);
|
|
58
|
+
return response.transaction;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Deletes a credit note.
|
|
62
|
+
* Endpoint: DELETE /purchases/credit_notes/{id}
|
|
63
|
+
* @param id - The ID of the credit note to delete.
|
|
64
|
+
* @returns A promise that resolves when the credit note is deleted.
|
|
65
|
+
*/
|
|
66
|
+
async delete(id) {
|
|
67
|
+
await this._request(`/purchases/credit_notes/${id}`, "DELETE");
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.CreditNotesAPI = CreditNotesAPI;
|
|
71
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/purchases/credit-notes/index.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAatC,MAAa,cAAc;IACzB,YAAoB,QAAiC;QAAjC,aAAQ,GAAR,QAAQ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@
|
|
|
1
|
+
import { BukkuFileAttachment, BukkuAttachedFileResponse, BukkuFormItem, // Common form item structure for responses
|
|
2
|
+
BukkuListPagination } from "../../common/type";
|
|
3
|
+
import { BukkuBillLinkedItem } from "../bills/type";
|
|
4
|
+
/**
|
|
5
|
+
* Represents a form item for creating/updating a Bukku Purchase Credit Note.
|
|
6
|
+
* Based on the form_items array in the POST /purchases/credit_notes request body.
|
|
7
|
+
*/
|
|
8
|
+
export interface BukkuCreditNoteFormItemCreateParams {
|
|
9
|
+
id?: number;
|
|
10
|
+
type?: "bundle" | "subtitle" | "subtotal" | null;
|
|
11
|
+
account_id?: number;
|
|
12
|
+
description?: string;
|
|
13
|
+
service_date?: string;
|
|
14
|
+
product_id?: number;
|
|
15
|
+
product_unit_id?: number;
|
|
16
|
+
location_id?: number;
|
|
17
|
+
unit_price?: number;
|
|
18
|
+
quantity?: number;
|
|
19
|
+
discount?: string;
|
|
20
|
+
tax_code_id?: number;
|
|
21
|
+
classification_code?: string;
|
|
22
|
+
children?: BukkuCreditNoteFormItemCreateParams[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Represents a link item for creating/updating a Bukku Purchase Credit Note,
|
|
26
|
+
* specifying which transactions the credit note is applied to.
|
|
27
|
+
* Based on the link_items array in the POST /purchases/credit_notes request body.
|
|
28
|
+
*/
|
|
29
|
+
export interface BukkuCreditNoteLinkItemCreateParams {
|
|
30
|
+
id?: number;
|
|
31
|
+
target_transaction_id: number;
|
|
32
|
+
apply_amount: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Parameters for creating a Bukku Purchase Credit Note.
|
|
36
|
+
* Based on POST /purchases/credit_notes
|
|
37
|
+
*/
|
|
38
|
+
export interface BukkuCreditNoteCreateParams {
|
|
39
|
+
contact_id: number;
|
|
40
|
+
number?: string;
|
|
41
|
+
number2?: string;
|
|
42
|
+
date: string;
|
|
43
|
+
currency_code: string;
|
|
44
|
+
exchange_rate: number;
|
|
45
|
+
billing_party?: string;
|
|
46
|
+
tag_ids?: number[];
|
|
47
|
+
description?: string;
|
|
48
|
+
remarks?: string;
|
|
49
|
+
tax_mode: "inclusive" | "exclusive";
|
|
50
|
+
form_items: BukkuCreditNoteFormItemCreateParams[];
|
|
51
|
+
link_items?: BukkuCreditNoteLinkItemCreateParams[];
|
|
52
|
+
status: "draft" | "pending_approval" | "ready";
|
|
53
|
+
files?: BukkuFileAttachment[];
|
|
54
|
+
customs_form_no?: string | null;
|
|
55
|
+
customs_k2_form_no?: string | null;
|
|
56
|
+
incoterms?: string | null;
|
|
57
|
+
myinvois_action?: "NORMAL" | "VALIDATE" | "EXTERNAL";
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Represents an item in the `link_items` array of a Bukku Credit Note response.
|
|
61
|
+
* This shows how the credit note is applied to other transactions.
|
|
62
|
+
*/
|
|
63
|
+
export interface BukkuCreditNoteAppliedLinkItem {
|
|
64
|
+
id: number;
|
|
65
|
+
target_transaction_id: number;
|
|
66
|
+
type: string;
|
|
67
|
+
number: string;
|
|
68
|
+
date: string;
|
|
69
|
+
description: string;
|
|
70
|
+
amount: number;
|
|
71
|
+
balance: number;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Represents a Bukku Purchase Credit Note object as returned by the API.
|
|
75
|
+
* Based on the response sample for POST /purchases/credit_notes
|
|
76
|
+
*/
|
|
77
|
+
export interface BukkuCreditNote {
|
|
78
|
+
id: number;
|
|
79
|
+
contact_id: number;
|
|
80
|
+
contact_name: string;
|
|
81
|
+
number: string;
|
|
82
|
+
number2: string | null;
|
|
83
|
+
date: string;
|
|
84
|
+
currency_code: string;
|
|
85
|
+
currency_symbol: string;
|
|
86
|
+
exchange_rate: number;
|
|
87
|
+
billing_party: string | null;
|
|
88
|
+
tag_ids: number[] | null;
|
|
89
|
+
tag_names: string[] | null;
|
|
90
|
+
description: string | null;
|
|
91
|
+
remarks: string | null;
|
|
92
|
+
tax_mode: "inclusive" | "exclusive";
|
|
93
|
+
form_items: BukkuFormItem[];
|
|
94
|
+
link_items: BukkuCreditNoteAppliedLinkItem[] | null;
|
|
95
|
+
linked_items: BukkuBillLinkedItem[] | null;
|
|
96
|
+
amount: number;
|
|
97
|
+
balance: number;
|
|
98
|
+
status: string;
|
|
99
|
+
type: string;
|
|
100
|
+
files: BukkuAttachedFileResponse[] | null;
|
|
101
|
+
customs_form_no: string | null;
|
|
102
|
+
customs_k2_form_no: string | null;
|
|
103
|
+
incoterms: string | null;
|
|
104
|
+
myinvois_action: "NORMAL" | "VALIDATE" | "EXTERNAL" | null;
|
|
105
|
+
myinvois_document_uuid: string | null;
|
|
106
|
+
myinvois_document_long_id: string | null;
|
|
107
|
+
myinvois_document_status: string | null;
|
|
108
|
+
issued_at: string | null;
|
|
109
|
+
validated_at: string | null;
|
|
110
|
+
rejected_at: string | null;
|
|
111
|
+
reject_message: string | null;
|
|
112
|
+
cancelled_at: string | null;
|
|
113
|
+
cancel_message: string | null;
|
|
114
|
+
short_link?: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Represents the API response structure when a credit note is created or retrieved.
|
|
118
|
+
*/
|
|
119
|
+
export interface BukkuCreditNoteResponse {
|
|
120
|
+
transaction: BukkuCreditNote;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Parameters for updating a Bukku Purchase Credit Note.
|
|
124
|
+
* (Assumed structure, similar to other PUT endpoints)
|
|
125
|
+
*/
|
|
126
|
+
export interface BukkuCreditNoteUpdateParams {
|
|
127
|
+
contact_id: number;
|
|
128
|
+
number: string;
|
|
129
|
+
number2?: string;
|
|
130
|
+
date: string;
|
|
131
|
+
currency_code: string;
|
|
132
|
+
exchange_rate: number;
|
|
133
|
+
billing_party?: string;
|
|
134
|
+
tag_ids?: number[];
|
|
135
|
+
description?: string;
|
|
136
|
+
remarks?: string;
|
|
137
|
+
tax_mode: "inclusive" | "exclusive";
|
|
138
|
+
form_items: BukkuCreditNoteFormItemCreateParams[];
|
|
139
|
+
link_items?: BukkuCreditNoteLinkItemCreateParams[];
|
|
140
|
+
files?: BukkuFileAttachment[];
|
|
141
|
+
customs_form_no?: string | null;
|
|
142
|
+
customs_k2_form_no?: string | null;
|
|
143
|
+
incoterms?: string | null;
|
|
144
|
+
myinvois_action?: "NORMAL" | "VALIDATE" | "EXTERNAL";
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Parameters for updating the status of a Bukku Purchase Credit Note.
|
|
148
|
+
* (Assumed structure, similar to other PATCH endpoints)
|
|
149
|
+
*/
|
|
150
|
+
export interface BukkuCreditNoteStatusUpdateParams {
|
|
151
|
+
status: "draft" | "pending_approval" | "ready" | "void";
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Parameters for listing Bukku Purchase Credit Notes.
|
|
155
|
+
* (Assumed structure, similar to other list params)
|
|
156
|
+
*/
|
|
157
|
+
export interface BukkuCreditNoteListParams {
|
|
158
|
+
search?: string;
|
|
159
|
+
custom_search?: string;
|
|
160
|
+
contact_id?: number;
|
|
161
|
+
date_from?: string;
|
|
162
|
+
date_to?: string;
|
|
163
|
+
status?: "all" | "draft" | "pending_approval" | "ready" | "void";
|
|
164
|
+
payment_status?: "PAID" | "OUTSTANDING" | "OVERDUE";
|
|
165
|
+
page?: number;
|
|
166
|
+
page_size?: number;
|
|
167
|
+
sort_by?: "number" | "date" | "contact_name" | "number2" | "description" | "amount" | "balance" | "created_at";
|
|
168
|
+
sort_dir?: "asc" | "desc";
|
|
169
|
+
[key: string]: any;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Represents a summary of a Bukku Purchase Credit Note as it might appear in a list.
|
|
173
|
+
* (Assumed structure, similar to other list items)
|
|
174
|
+
*/
|
|
175
|
+
export interface BukkuCreditNoteListItem {
|
|
176
|
+
id: number;
|
|
177
|
+
contact_id: number;
|
|
178
|
+
contact_name: string;
|
|
179
|
+
number: string;
|
|
180
|
+
number2: string | null;
|
|
181
|
+
date: string;
|
|
182
|
+
currency_code: string;
|
|
183
|
+
currency_symbol: string;
|
|
184
|
+
exchange_rate: number;
|
|
185
|
+
description?: string | null;
|
|
186
|
+
amount: number;
|
|
187
|
+
balance?: number;
|
|
188
|
+
status: string;
|
|
189
|
+
file_count?: number;
|
|
190
|
+
short_link?: string;
|
|
191
|
+
created_by?: string;
|
|
192
|
+
created_at: string;
|
|
193
|
+
updated_at: string;
|
|
194
|
+
myinvois_document_status?: string | null;
|
|
195
|
+
myinvois_document_uuid?: string | null;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Represents the API response structure for listing purchase credit notes.
|
|
199
|
+
*/
|
|
200
|
+
export interface BukkuCreditNoteListApiResponse {
|
|
201
|
+
paging: BukkuListPagination;
|
|
202
|
+
transactions: BukkuCreditNoteListItem[];
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/purchases/credit-notes/type.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,aAAa,EAAE,2CAA2C;AAC1D,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,mCAAmC;IAClD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACp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,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,mBAAmB,CAAC;IAC5B,YAAY,EAAE,uBAAuB,EAAE,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/purchases/credit-notes/type.ts"],"names":[],"mappings":";AAAA,qCAAqC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { BukkuAPIRequestFunction } from "../../types";
|
|
2
|
+
import { BukkuGoodsReceivedNote, BukkuGoodsReceivedNoteCreateParams, BukkuGoodsReceivedNoteListParams, BukkuGoodsReceivedNoteListApiResponse, BukkuGoodsReceivedNoteUpdateParams, BukkuGoodsReceivedNoteStatusUpdateParams } from "./type";
|
|
3
|
+
export declare class GoodsReceivedNotesAPI {
|
|
4
|
+
private _request;
|
|
5
|
+
constructor(_request: BukkuAPIRequestFunction);
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new goods received note.
|
|
8
|
+
* Endpoint: POST /purchases/goods_received_notes
|
|
9
|
+
* @param data - The data for the new goods received note.
|
|
10
|
+
* @returns A promise that resolves to the created goods received note.
|
|
11
|
+
*/
|
|
12
|
+
create(data: BukkuGoodsReceivedNoteCreateParams): Promise<BukkuGoodsReceivedNote>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves a paginated list of goods received notes.
|
|
15
|
+
* Endpoint: GET /purchases/goods_received_notes
|
|
16
|
+
* @param params - Optional parameters for filtering and pagination.
|
|
17
|
+
* @returns A promise that resolves to the API response for listing goods received notes.
|
|
18
|
+
*/
|
|
19
|
+
list(params?: BukkuGoodsReceivedNoteListParams): Promise<BukkuGoodsReceivedNoteListApiResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a specific goods received note by its ID.
|
|
22
|
+
* Endpoint: GET /purchases/goods_received_notes/{id}
|
|
23
|
+
* @param id - The ID of the goods received note to retrieve.
|
|
24
|
+
* @returns A promise that resolves to the goods received note.
|
|
25
|
+
*/
|
|
26
|
+
get(id: string | number): Promise<BukkuGoodsReceivedNote>;
|
|
27
|
+
/**
|
|
28
|
+
* Updates an existing goods received note.
|
|
29
|
+
* Endpoint: PUT /purchases/goods_received_notes/{id}
|
|
30
|
+
* @param id - The ID of the goods received note to update.
|
|
31
|
+
* @param data - The data to update the goods received note with.
|
|
32
|
+
* @returns A promise that resolves to the updated goods received note.
|
|
33
|
+
*/
|
|
34
|
+
update(id: string | number, data: BukkuGoodsReceivedNoteUpdateParams): Promise<BukkuGoodsReceivedNote>;
|
|
35
|
+
/**
|
|
36
|
+
* Updates the status of an existing goods received note.
|
|
37
|
+
* Endpoint: PATCH /purchases/goods_received_notes/{id}
|
|
38
|
+
* @param id - The ID of the goods received note to update.
|
|
39
|
+
* @param data - The data containing the new status.
|
|
40
|
+
* @returns A promise that resolves to the updated goods received note.
|
|
41
|
+
*/
|
|
42
|
+
updateStatus(id: string | number, data: BukkuGoodsReceivedNoteStatusUpdateParams): Promise<BukkuGoodsReceivedNote>;
|
|
43
|
+
/**
|
|
44
|
+
* Deletes a goods received note.
|
|
45
|
+
* Endpoint: DELETE /purchases/goods_received_notes/{id}
|
|
46
|
+
* @param id - The ID of the goods received note to delete.
|
|
47
|
+
* @returns A promise that resolves when the goods received note is deleted.
|
|
48
|
+
*/
|
|
49
|
+
delete(id: string | number): Promise<void>;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/purchases/goods-received-notes/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EACL,sBAAsB,EACtB,kCAAkC,EAElC,gCAAgC,EAChC,qCAAqC,EACrC,kCAAkC,EAClC,wCAAwC,EACzC,MAAM,QAAQ,CAAC;AAEhB,qBAAa,qBAAqB;IACpB,OAAO,CAAC,QAAQ;gBAAR,QAAQ,EAAE,uBAAuB;IAErD;;;;;OAKG;IACG,MAAM,CACV,IAAI,EAAE,kCAAkC,GACvC,OAAO,CAAC,sBAAsB,CAAC;IASlC;;;;;OAKG;IACG,IAAI,CACR,MAAM,CAAC,EAAE,gCAAgC,GACxC,OAAO,CAAC,qCAAqC,CAAC;IASjD;;;;;OAKG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAQ/D;;;;;;OAMG;IACG,MAAM,CACV,EAAE,EAAE,MAAM,GAAG,MAAM,EACnB,IAAI,EAAE,kCAAkC,GACvC,OAAO,CAAC,sBAAsB,CAAC;IASlC;;;;;;OAMG;IACG,YAAY,CAChB,EAAE,EAAE,MAAM,GAAG,MAAM,EACnB,IAAI,EAAE,wCAAwC,GAC7C,OAAO,CAAC,sBAAsB,CAAC;IASlC;;;;;OAKG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjD"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// src/purchases/goods-received-notes/index.ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GoodsReceivedNotesAPI = void 0;
|
|
5
|
+
class GoodsReceivedNotesAPI {
|
|
6
|
+
constructor(_request) {
|
|
7
|
+
this._request = _request;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new goods received note.
|
|
11
|
+
* Endpoint: POST /purchases/goods_received_notes
|
|
12
|
+
* @param data - The data for the new goods received note.
|
|
13
|
+
* @returns A promise that resolves to the created goods received note.
|
|
14
|
+
*/
|
|
15
|
+
async create(data) {
|
|
16
|
+
const response = await this._request("/purchases/goods_received_notes", "POST", data);
|
|
17
|
+
return response.transaction;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves a paginated list of goods received notes.
|
|
21
|
+
* Endpoint: GET /purchases/goods_received_notes
|
|
22
|
+
* @param params - Optional parameters for filtering and pagination.
|
|
23
|
+
* @returns A promise that resolves to the API response for listing goods received notes.
|
|
24
|
+
*/
|
|
25
|
+
async list(params) {
|
|
26
|
+
return this._request("/purchases/goods_received_notes", "GET", undefined, params);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves a specific goods received note by its ID.
|
|
30
|
+
* Endpoint: GET /purchases/goods_received_notes/{id}
|
|
31
|
+
* @param id - The ID of the goods received note to retrieve.
|
|
32
|
+
* @returns A promise that resolves to the goods received note.
|
|
33
|
+
*/
|
|
34
|
+
async get(id) {
|
|
35
|
+
const response = await this._request(`/purchases/goods_received_notes/${id}`, "GET");
|
|
36
|
+
return response.transaction;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Updates an existing goods received note.
|
|
40
|
+
* Endpoint: PUT /purchases/goods_received_notes/{id}
|
|
41
|
+
* @param id - The ID of the goods received note to update.
|
|
42
|
+
* @param data - The data to update the goods received note with.
|
|
43
|
+
* @returns A promise that resolves to the updated goods received note.
|
|
44
|
+
*/
|
|
45
|
+
async update(id, data) {
|
|
46
|
+
const response = await this._request(`/purchases/goods_received_notes/${id}`, "PUT", data);
|
|
47
|
+
return response.transaction;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Updates the status of an existing goods received note.
|
|
51
|
+
* Endpoint: PATCH /purchases/goods_received_notes/{id}
|
|
52
|
+
* @param id - The ID of the goods received note to update.
|
|
53
|
+
* @param data - The data containing the new status.
|
|
54
|
+
* @returns A promise that resolves to the updated goods received note.
|
|
55
|
+
*/
|
|
56
|
+
async updateStatus(id, data) {
|
|
57
|
+
const response = await this._request(`/purchases/goods_received_notes/${id}`, "PATCH", data);
|
|
58
|
+
return response.transaction;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Deletes a goods received note.
|
|
62
|
+
* Endpoint: DELETE /purchases/goods_received_notes/{id}
|
|
63
|
+
* @param id - The ID of the goods received note to delete.
|
|
64
|
+
* @returns A promise that resolves when the goods received note is deleted.
|
|
65
|
+
*/
|
|
66
|
+
async delete(id) {
|
|
67
|
+
await this._request(`/purchases/goods_received_notes/${id}`, "DELETE");
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.GoodsReceivedNotesAPI = GoodsReceivedNotesAPI;
|
|
71
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/purchases/goods-received-notes/index.ts"],"names":[],"mappings":";AAAA,8CAA8C;;;AAa9C,MAAa,qBAAqB;IAChC,YAAoB,QAAiC;QAAjC,aAAQ,GAAR,QAAQ,CAAyB;IAAG,CAAC;IAEzD;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,IAAwC;QAExC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAClC,iCAAiC,EACjC,MAAM,EACN,IAAI,CACL,CAAC;QACF,OAAO,QAAQ,CAAC,WAAW,CAAC;IAC9B,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,MAAyC;QAEzC,OAAO,IAAI,CAAC,QAAQ,CAClB,iCAAiC,EACjC,KAAK,EACL,SAAS,EACT,MAAM,CACP,C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