@getmanza/sdk 0.0.0-stage → 1.0.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/CHANGELOG.md +91 -0
- package/LICENSE +21 -0
- package/README.md +154 -2
- package/dist/client.d.ts +43 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/errors.d.ts +46 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/index.cjs +655 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +613 -0
- package/dist/page.d.ts +19 -0
- package/dist/page.d.ts.map +1 -0
- package/dist/resources/accounts.d.ts +19 -0
- package/dist/resources/accounts.d.ts.map +1 -0
- package/dist/resources/base.d.ts +19 -0
- package/dist/resources/base.d.ts.map +1 -0
- package/dist/resources/beneficiaries.d.ts +12 -0
- package/dist/resources/beneficiaries.d.ts.map +1 -0
- package/dist/resources/checkout_sessions.d.ts +7 -0
- package/dist/resources/checkout_sessions.d.ts.map +1 -0
- package/dist/resources/customers.d.ts +14 -0
- package/dist/resources/customers.d.ts.map +1 -0
- package/dist/resources/entity.d.ts +6 -0
- package/dist/resources/entity.d.ts.map +1 -0
- package/dist/resources/invoices.d.ts +20 -0
- package/dist/resources/invoices.d.ts.map +1 -0
- package/dist/resources/payee_trust_requests.d.ts +9 -0
- package/dist/resources/payee_trust_requests.d.ts.map +1 -0
- package/dist/resources/payment_links.d.ts +10 -0
- package/dist/resources/payment_links.d.ts.map +1 -0
- package/dist/resources/transfer_drafts.d.ts +15 -0
- package/dist/resources/transfer_drafts.d.ts.map +1 -0
- package/dist/resources/webhook_endpoints.d.ts +20 -0
- package/dist/resources/webhook_endpoints.d.ts.map +1 -0
- package/dist/response.d.ts +10 -0
- package/dist/response.d.ts.map +1 -0
- package/dist/transfer_authorization.d.ts +27 -0
- package/dist/transfer_authorization.d.ts.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +70 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ZazuResponse } from "../response.js";
|
|
2
|
+
import { ResourceBase } from "./base.js";
|
|
3
|
+
export declare class CheckoutSessions extends ResourceBase {
|
|
4
|
+
get(id: string): Promise<ZazuResponse>;
|
|
5
|
+
create(attributes: Record<string, unknown>): Promise<ZazuResponse>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=checkout_sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout_sessions.d.ts","sourceRoot":"","sources":["../../src/resources/checkout_sessions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,qBAAa,gBAAiB,SAAQ,YAAY;IAChD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAItC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;CAGnE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Page } from "../page.js";
|
|
2
|
+
import type { ZazuResponse } from "../response.js";
|
|
3
|
+
import { type ListParams, ResourceBase } from "./base.js";
|
|
4
|
+
export interface CustomerListParams extends ListParams {
|
|
5
|
+
q?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class Customers extends ResourceBase {
|
|
8
|
+
list(params?: CustomerListParams): Promise<Page<unknown>>;
|
|
9
|
+
get(id: string): Promise<ZazuResponse>;
|
|
10
|
+
create(attributes: Record<string, unknown>): Promise<ZazuResponse>;
|
|
11
|
+
update(id: string, attributes: Record<string, unknown>): Promise<ZazuResponse>;
|
|
12
|
+
delete(id: string): Promise<ZazuResponse>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=customers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../src/resources/customers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE1D,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,qBAAa,SAAU,SAAQ,YAAY;IACzC,IAAI,CAAC,MAAM,GAAE,kBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAK7D,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAItC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9E,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAG1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/resources/entity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,qBAAa,MAAO,SAAQ,YAAY;IACtC,GAAG,IAAI,OAAO,CAAC,YAAY,CAAC;CAG7B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Page } from "../page.js";
|
|
2
|
+
import type { ZazuResponse } from "../response.js";
|
|
3
|
+
import { type ListParams, ResourceBase } from "./base.js";
|
|
4
|
+
export interface InvoiceListParams extends ListParams {
|
|
5
|
+
status?: string;
|
|
6
|
+
customer_id?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class Invoices extends ResourceBase {
|
|
9
|
+
list(params?: InvoiceListParams): Promise<Page<unknown>>;
|
|
10
|
+
get(id: string): Promise<ZazuResponse>;
|
|
11
|
+
create(attributes: Record<string, unknown>): Promise<ZazuResponse>;
|
|
12
|
+
update(id: string, attributes: Record<string, unknown>): Promise<ZazuResponse>;
|
|
13
|
+
delete(id: string): Promise<ZazuResponse>;
|
|
14
|
+
send(id: string): Promise<ZazuResponse>;
|
|
15
|
+
markAsPaid(id: string, attributes?: Record<string, unknown>): Promise<ZazuResponse>;
|
|
16
|
+
cancel(id: string): Promise<ZazuResponse>;
|
|
17
|
+
creditNote(id: string, attributes?: Record<string, unknown>): Promise<ZazuResponse>;
|
|
18
|
+
createPaymentLink(id: string, attributes?: Record<string, unknown>): Promise<ZazuResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=invoices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoices.d.ts","sourceRoot":"","sources":["../../src/resources/invoices.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE1D,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,QAAS,SAAQ,YAAY;IACxC,IAAI,CAAC,MAAM,GAAE,iBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAK5D,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAItC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9E,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAOzC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIvC,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIvF,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzC,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIvF,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAG/F"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ZazuResponse } from "../response.js";
|
|
2
|
+
import { ResourceBase } from "./base.js";
|
|
3
|
+
export declare class PayeeTrustRequests extends ResourceBase {
|
|
4
|
+
create(params: {
|
|
5
|
+
external_account_ids: string[];
|
|
6
|
+
}): Promise<ZazuResponse>;
|
|
7
|
+
get(id: string): Promise<ZazuResponse>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=payee_trust_requests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payee_trust_requests.d.ts","sourceRoot":"","sources":["../../src/resources/payee_trust_requests.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,qBAAa,kBAAmB,SAAQ,YAAY;IAElD,MAAM,CAAC,MAAM,EAAE;QAAE,oBAAoB,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,CAAC;IAMzE,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAGvC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Page } from "../page.js";
|
|
2
|
+
import type { ZazuResponse } from "../response.js";
|
|
3
|
+
import { type ListParams, ResourceBase } from "./base.js";
|
|
4
|
+
export declare class PaymentLinks extends ResourceBase {
|
|
5
|
+
list(params?: ListParams): Promise<Page<unknown>>;
|
|
6
|
+
get(id: string): Promise<ZazuResponse>;
|
|
7
|
+
create(attributes: Record<string, unknown>): Promise<ZazuResponse>;
|
|
8
|
+
cancel(id: string): Promise<ZazuResponse>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=payment_links.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment_links.d.ts","sourceRoot":"","sources":["../../src/resources/payment_links.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE1D,qBAAa,YAAa,SAAQ,YAAY;IAC5C,IAAI,CAAC,MAAM,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAKrD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAItC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAG1C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ZazuResponse } from "../response.js";
|
|
2
|
+
import { ResourceBase } from "./base.js";
|
|
3
|
+
export declare class TransferDrafts extends ResourceBase {
|
|
4
|
+
create(attributes: Record<string, unknown>): Promise<ZazuResponse>;
|
|
5
|
+
get(id: string): Promise<ZazuResponse>;
|
|
6
|
+
authorize(id: string, params: {
|
|
7
|
+
authorization_id: string;
|
|
8
|
+
signature: string;
|
|
9
|
+
}): Promise<ZazuResponse>;
|
|
10
|
+
decline(id: string, params: {
|
|
11
|
+
authorization_id: string;
|
|
12
|
+
reason?: string | null | undefined;
|
|
13
|
+
}): Promise<ZazuResponse>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=transfer_drafts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer_drafts.d.ts","sourceRoot":"","sources":["../../src/resources/transfer_drafts.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,qBAAa,cAAe,SAAQ,YAAY;IAO9C,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlE,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAUtC,SAAS,CACP,EAAE,EAAE,MAAM,EACV,MAAM,EAAE;QAAE,gBAAgB,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GACtD,OAAO,CAAC,YAAY,CAAC;IAYxB,OAAO,CACL,EAAE,EAAE,MAAM,EACV,MAAM,EAAE;QAAE,gBAAgB,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;KAAE,GACvE,OAAO,CAAC,YAAY,CAAC;CAKzB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Page } from "../page.js";
|
|
2
|
+
import type { ZazuResponse } from "../response.js";
|
|
3
|
+
import { type ListParams, ResourceBase } from "./base.js";
|
|
4
|
+
export interface WebhookEndpointCreateParams {
|
|
5
|
+
url: string;
|
|
6
|
+
events: string[];
|
|
7
|
+
description?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class WebhookEndpoints extends ResourceBase {
|
|
10
|
+
list(params?: ListParams): Promise<Page<unknown>>;
|
|
11
|
+
get(id: string): Promise<ZazuResponse>;
|
|
12
|
+
create(params: WebhookEndpointCreateParams): Promise<ZazuResponse>;
|
|
13
|
+
update(id: string, attributes: Record<string, unknown>): Promise<ZazuResponse>;
|
|
14
|
+
delete(id: string): Promise<ZazuResponse>;
|
|
15
|
+
test(id: string): Promise<ZazuResponse>;
|
|
16
|
+
regenerateSecret(id: string): Promise<ZazuResponse>;
|
|
17
|
+
enable(id: string): Promise<ZazuResponse>;
|
|
18
|
+
disable(id: string): Promise<ZazuResponse>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=webhook_endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook_endpoints.d.ts","sourceRoot":"","sources":["../../src/resources/webhook_endpoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE1D,MAAM,WAAW,2BAA2B;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,gBAAiB,SAAQ,YAAY;IAChD,IAAI,CAAC,MAAM,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAKrD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAItC,MAAM,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI9E,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIvC,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAInD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIzC,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAG3C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class ZazuResponse<TBody = unknown> {
|
|
2
|
+
readonly status: number;
|
|
3
|
+
readonly headers: Headers;
|
|
4
|
+
readonly body: TBody;
|
|
5
|
+
readonly raw: Response;
|
|
6
|
+
constructor(raw: Response, body: TBody);
|
|
7
|
+
get success(): boolean;
|
|
8
|
+
get requestId(): string | null;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../src/response.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY,CAAC,KAAK,GAAG,OAAO;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC;gBAEX,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK;IAOtC,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,SAAS,IAAI,MAAM,GAAG,IAAI,CAE7B;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const SIGNATURE_VERSION = "manza.transfer-authorization.v1";
|
|
2
|
+
export interface SignatureInputFields {
|
|
3
|
+
payment_id: string;
|
|
4
|
+
nonce: string;
|
|
5
|
+
amount: string;
|
|
6
|
+
currency_code: string;
|
|
7
|
+
account_id: string;
|
|
8
|
+
payee: string;
|
|
9
|
+
client_reference?: string | null | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface PayeeForParams {
|
|
12
|
+
external_account_id?: string | null | undefined;
|
|
13
|
+
destination_account_id?: string | null | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare function signatureInput(fields: SignatureInputFields): string;
|
|
16
|
+
export declare function sign(params: {
|
|
17
|
+
secret: string;
|
|
18
|
+
signature_input: string;
|
|
19
|
+
}): Promise<string>;
|
|
20
|
+
export declare function payeeFor(params: PayeeForParams): string;
|
|
21
|
+
export declare const TransferAuthorization: {
|
|
22
|
+
readonly SIGNATURE_VERSION: "manza.transfer-authorization.v1";
|
|
23
|
+
readonly signatureInput: typeof signatureInput;
|
|
24
|
+
readonly sign: typeof sign;
|
|
25
|
+
readonly payeeFor: typeof payeeFor;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=transfer_authorization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer_authorization.d.ts","sourceRoot":"","sources":["../src/transfer_authorization.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,iBAAiB,oCAAoC,CAAC;AAEnE,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC9C;AAED,MAAM,WAAW,cAAc;IAC7B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACpD;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAgBnE;AAKD,wBAAsB,IAAI,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAW/F;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CASvD;AAED,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,72 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getmanza/sdk",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "TypeScript SDK for the Manza API. Runtime-agnostic (Node, Bun, Deno, browsers, Cloudflare Workers).",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md",
|
|
19
|
+
"CHANGELOG.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "rm -rf dist && bun run build:esm && bun run build:cjs && bun run build:dts",
|
|
24
|
+
"build:esm": "bun build src/index.ts --outfile dist/index.js --target browser --format esm",
|
|
25
|
+
"build:cjs": "bun build src/index.ts --outfile dist/index.cjs --target node --format cjs",
|
|
26
|
+
"build:dts": "tsc -p tsconfig.build.json --emitDeclarationOnly --declaration --outDir dist",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"test": "bun test",
|
|
29
|
+
"lint": "biome check --error-on-warnings .",
|
|
30
|
+
"lint:fix": "biome check --write .",
|
|
31
|
+
"format": "biome format --write .",
|
|
32
|
+
"format:check": "biome format .",
|
|
33
|
+
"check:all": "bun run typecheck && bun run lint && bun test",
|
|
34
|
+
"fetch:cassettes": "bun scripts/fetch-cassettes.ts",
|
|
35
|
+
"release": "bin/release"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"manza",
|
|
39
|
+
"sdk",
|
|
40
|
+
"api",
|
|
41
|
+
"payments",
|
|
42
|
+
"morocco",
|
|
43
|
+
"fintech"
|
|
44
|
+
],
|
|
45
|
+
"author": "Manza <hello@get-manza.com>",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"homepage": "https://github.com/getmanza/manza-ts",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "git+https://github.com/getmanza/manza-ts.git"
|
|
51
|
+
},
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/getmanza/manza-ts/issues"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=20.0.0"
|
|
57
|
+
},
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public",
|
|
60
|
+
"provenance": true,
|
|
61
|
+
"registry": "https://registry.npmjs.org/"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@biomejs/biome": "^2.4.14",
|
|
65
|
+
"@types/bun": "latest",
|
|
66
|
+
"@types/js-yaml": "^4.0.9",
|
|
67
|
+
"js-yaml": "^4.1.0",
|
|
68
|
+
"msw": "^2.6.0",
|
|
69
|
+
"tar": "^7.4.3",
|
|
70
|
+
"typescript": "^5.6.0"
|
|
71
|
+
}
|
|
72
|
+
}
|