@medusajs/types 1.12.0-snapshot-20240907131855 → 1.12.0-snapshot-20240909132045
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/http/claim/common.d.ts +1 -1
- package/dist/http/claim/common.d.ts.map +1 -1
- package/dist/http/currency/common.d.ts +0 -2
- package/dist/http/currency/common.d.ts.map +1 -1
- package/dist/modules-sdk/remote-query.d.ts +23 -0
- package/dist/modules-sdk/remote-query.d.ts.map +1 -1
- package/dist/tax/common.d.ts +1 -1
- package/dist/tax/mutations.d.ts +1 -1
- package/package.json +1 -1
@@ -18,7 +18,7 @@ export interface BaseClaimItem {
|
|
18
18
|
export interface BaseClaim extends Omit<BaseOrder, "status" | "version" | "items"> {
|
19
19
|
order_id: string;
|
20
20
|
claim_items: BaseClaimItem[];
|
21
|
-
additional_items:
|
21
|
+
additional_items: BaseClaimItem[];
|
22
22
|
return?: ReturnDTO;
|
23
23
|
return_id?: string;
|
24
24
|
no_notification?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/claim/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,WAAW,CAAA;IACnB,YAAY,EAAE,iBAAiB,CAAA;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAA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AC5B,gBAAgB,EAAE,aAAa,EAAE,CAAA;IACjC,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,mBAAoB,SAAQ,UAAU;IACrD,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { RawRounding } from "../../common";
|
2
1
|
export interface BaseCurrency {
|
3
2
|
code: string;
|
4
3
|
symbol: string;
|
@@ -6,7 +5,6 @@ export interface BaseCurrency {
|
|
6
5
|
name: string;
|
7
6
|
decimal_digits: number;
|
8
7
|
rounding: number;
|
9
|
-
raw_rounding: RawRounding;
|
10
8
|
created_at: string;
|
11
9
|
updated_at: string;
|
12
10
|
deleted_at: string | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/currency/common.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/currency/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
|
@@ -1,10 +1,28 @@
|
|
1
|
+
import { Prettify } from "../common";
|
1
2
|
import { RemoteJoinerOptions, RemoteJoinerQuery } from "../joiner";
|
3
|
+
import { RemoteQueryEntryPoints } from "./remote-query-entry-points";
|
2
4
|
import { RemoteQueryObjectConfig, RemoteQueryObjectFromStringResult } from "./remote-query-object-from-string";
|
3
5
|
export type RemoteQueryFunctionReturnPagination = {
|
4
6
|
skip: number;
|
5
7
|
take: number;
|
6
8
|
count: number;
|
7
9
|
};
|
10
|
+
/**
|
11
|
+
* The GraphResultSet presents a typed output for the
|
12
|
+
* result returned by the underlying remote query
|
13
|
+
*/
|
14
|
+
export type GraphResultSet<TEntry extends string> = {
|
15
|
+
data: TEntry extends keyof RemoteQueryEntryPoints ? RemoteQueryEntryPoints[TEntry][] : any[];
|
16
|
+
metadata?: RemoteQueryFunctionReturnPagination;
|
17
|
+
};
|
18
|
+
/**
|
19
|
+
* QueryGraphFunction is a wrapper on top of remoteQuery
|
20
|
+
* that simplifies the input it accepts and returns
|
21
|
+
* a normalized/consistent output.
|
22
|
+
*/
|
23
|
+
export type QueryGraphFunction = {
|
24
|
+
<const TEntry extends string>(queryConfig: RemoteQueryObjectConfig<TEntry>, options?: RemoteJoinerOptions): Promise<Prettify<GraphResultSet<TEntry>>>;
|
25
|
+
};
|
8
26
|
export type RemoteQueryFunction = {
|
9
27
|
/**
|
10
28
|
* Query wrapper to provide specific API's and pre processing around remoteQuery.query
|
@@ -24,6 +42,11 @@ export type RemoteQueryFunction = {
|
|
24
42
|
* @param options
|
25
43
|
*/
|
26
44
|
(query: RemoteJoinerQuery, options?: RemoteJoinerOptions): Promise<any>;
|
45
|
+
/**
|
46
|
+
* Graph function uses the remoteQuery under the hood and
|
47
|
+
* returns a result set
|
48
|
+
*/
|
49
|
+
graph: QueryGraphFunction;
|
27
50
|
/**
|
28
51
|
* Query wrapper to provide specific GraphQL like API around remoteQuery.query
|
29
52
|
* @param query
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"remote-query.d.ts","sourceRoot":"","sources":["../../src/modules-sdk/remote-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAClE,OAAO,EACL,uBAAuB,EACvB,iCAAiC,EAClC,MAAM,mCAAmC,CAAA;AAI1C,MAAM,MAAM,mCAAmC,GAAG;IAChD,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAiCD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;OAIG;IACH,CAAC,KAAK,CAAC,MAAM,SAAS,MAAM,EAC1B,WAAW,EAAE,uBAAuB,CAAC,MAAM,CAAC,EAC5C,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,GAAG,CAAC,CAAA;IAEf;;;;OAIG;IACH,CAAC,KAAK,CAAC,OAAO,SAAS,iCAAiC,CAAC,GAAG,CAAC,EAC3D,WAAW,EAAE,OAAO,EACpB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,GAAG,CAAC,CAAA;IACf;;;;OAIG;IACH,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;
|
1
|
+
{"version":3,"file":"remote-query.d.ts","sourceRoot":"","sources":["../../src/modules-sdk/remote-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,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CAAA;IAEzB;;;;;OAKG;IACH,GAAG,EAAE,CACH,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,CAAC,EAAE,mBAAmB,KAC1B,OAAO,CAAC,GAAG,CAAC,CAAA;CAClB,CAAA"}
|
package/dist/tax/common.d.ts
CHANGED
@@ -36,7 +36,7 @@ export interface TaxRateDTO {
|
|
36
36
|
/**
|
37
37
|
* Whether the tax rate should be combined with parent rates.
|
38
38
|
*
|
39
|
-
* Learn more [here](https://docs.medusajs.com/
|
39
|
+
* Learn more [here](https://docs.medusajs.com/v2/resources/commerce-modules/tax/tax-rates-and-rules#combinable-tax-rates).
|
40
40
|
*/
|
41
41
|
is_combinable: boolean;
|
42
42
|
/**
|
package/dist/tax/mutations.d.ts
CHANGED
@@ -108,7 +108,7 @@ export interface UpdateTaxRateDTO {
|
|
108
108
|
/**
|
109
109
|
* Whether the tax rate is combinable.
|
110
110
|
*
|
111
|
-
* Learn more [here](https://docs.medusajs.com/
|
111
|
+
* Learn more [here](https://docs.medusajs.com/v2/resources/commerce-modules/tax/tax-rates-and-rules#combinable-tax-rates).
|
112
112
|
*/
|
113
113
|
is_combinable?: boolean;
|
114
114
|
/**
|