@medusajs/js-sdk 0.0.2-snapshot-20240528094636 → 0.0.2-snapshot-20240529101443

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,6 +39,11 @@ export declare class Admin {
39
39
  }>;
40
40
  delete: (id: string, headers?: ClientHeaders) => Promise<DeleteResponse<"invite">>;
41
41
  };
42
+ products: {
43
+ create: (body: HttpTypes.AdminCreateProduct, query?: SelectParams, headers?: ClientHeaders) => Promise<{
44
+ product: HttpTypes.AdminProduct;
45
+ }>;
46
+ };
42
47
  customer: {
43
48
  create: (body: HttpTypes.AdminCreateCustomer, query?: SelectParams, headers?: ClientHeaders) => Promise<{
44
49
  customer: HttpTypes.AdminCustomer;
@@ -47,7 +52,7 @@ export declare class Admin {
47
52
  update: (id: string, body: HttpTypes.AdminUpdateCustomer, query?: SelectParams, headers?: ClientHeaders) => Promise<{
48
53
  customer: HttpTypes.AdminCustomer;
49
54
  }>;
50
- list: (queryParams?: FindParams, headers?: ClientHeaders) => Promise<HttpTypes.PaginatedResponse<{
55
+ list: (queryParams?: FindParams & HttpTypes.AdminCollectionFilters, headers?: ClientHeaders) => Promise<HttpTypes.PaginatedResponse<{
51
56
  customers: HttpTypes.AdminCustomer[];
52
57
  }>>;
53
58
  retrieve: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<{
@@ -55,4 +60,22 @@ export declare class Admin {
55
60
  }>;
56
61
  delete: (id: string, headers?: ClientHeaders) => Promise<DeleteResponse<"customer">>;
57
62
  };
63
+ collection: {
64
+ create: (body: HttpTypes.AdminCreateCollection, query?: SelectParams, headers?: ClientHeaders) => Promise<{
65
+ collection: HttpTypes.AdminCollection;
66
+ }>;
67
+ update: (id: string, body: HttpTypes.AdminUpdateCollection, query?: SelectParams, headers?: ClientHeaders) => Promise<{
68
+ collection: HttpTypes.AdminCollection;
69
+ }>;
70
+ list: (queryParams?: FindParams, headers?: ClientHeaders) => Promise<HttpTypes.PaginatedResponse<{
71
+ collections: HttpTypes.AdminCollection[];
72
+ }>>;
73
+ retrieve: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<{
74
+ collection: HttpTypes.AdminCollection;
75
+ }>;
76
+ delete: (id: string, headers?: ClientHeaders) => Promise<DeleteResponse<"collection">>;
77
+ updateProducts: (id: string, body: HttpTypes.AdminUpdateCollectionProducts, headers?: ClientHeaders) => Promise<{
78
+ collection: HttpTypes.AdminCollection;
79
+ }>;
80
+ };
58
81
  }
@@ -2,7 +2,7 @@ export class Admin {
2
2
  constructor(client) {
3
3
  this.region = {
4
4
  create: async (body, query, headers) => {
5
- return this.client.fetch(`/admin/regions`, {
5
+ return await this.client.fetch(`/admin/regions`, {
6
6
  method: "POST",
7
7
  headers,
8
8
  body,
@@ -10,7 +10,7 @@ export class Admin {
10
10
  });
11
11
  },
12
12
  update: async (id, body, query, headers) => {
13
- return this.client.fetch(`/admin/regions/${id}`, {
13
+ return await this.client.fetch(`/admin/regions/${id}`, {
14
14
  method: "POST",
15
15
  headers,
16
16
  body,
@@ -18,19 +18,19 @@ export class Admin {
18
18
  });
19
19
  },
20
20
  list: async (queryParams, headers) => {
21
- return this.client.fetch(`/admin/regions`, {
21
+ return await this.client.fetch(`/admin/regions`, {
22
22
  query: queryParams,
23
23
  headers,
24
24
  });
25
25
  },
26
26
  retrieve: async (id, query, headers) => {
27
- return this.client.fetch(`/admin/regions/${id}`, {
27
+ return await this.client.fetch(`/admin/regions/${id}`, {
28
28
  query,
29
29
  headers,
30
30
  });
31
31
  },
32
32
  delete: async (id, headers) => {
33
- return this.client.fetch(`/admin/regions/${id}`, {
33
+ return await this.client.fetch(`/admin/regions/${id}`, {
34
34
  method: "DELETE",
35
35
  headers,
36
36
  });
@@ -39,7 +39,7 @@ export class Admin {
39
39
  this.invites = {
40
40
  accept: async (input, query, headers) => {
41
41
  const { invite_token, ...rest } = input;
42
- return this.client.fetch(`/admin/invites/accept?token=${input.invite_token}`, {
42
+ return await this.client.fetch(`/admin/invites/accept?token=${input.invite_token}`, {
43
43
  method: "POST",
44
44
  headers,
45
45
  body: rest,
@@ -47,7 +47,7 @@ export class Admin {
47
47
  });
48
48
  },
49
49
  create: async (body, query, headers) => {
50
- return this.client.fetch(`/admin/invites`, {
50
+ return await this.client.fetch(`/admin/invites`, {
51
51
  method: "POST",
52
52
  headers,
53
53
  body,
@@ -55,29 +55,39 @@ export class Admin {
55
55
  });
56
56
  },
57
57
  retrieve: async (id, query, headers) => {
58
- return this.client.fetch(`/admin/invites/${id}`, {
58
+ return await this.client.fetch(`/admin/invites/${id}`, {
59
59
  headers,
60
60
  query,
61
61
  });
62
62
  },
63
63
  list: async (queryParams, headers) => {
64
- return this.client.fetch(`/admin/invites`, {
64
+ return await this.client.fetch(`/admin/invites`, {
65
65
  headers,
66
66
  query: queryParams,
67
67
  });
68
68
  },
69
69
  resend: async (id, headers) => {
70
- return this.client.fetch(`/admin/invites/${id}/resend`, {
70
+ return await this.client.fetch(`/admin/invites/${id}/resend`, {
71
71
  headers,
72
72
  });
73
73
  },
74
74
  delete: async (id, headers) => {
75
- return this.client.fetch(`/admin/invites/${id}`, {
75
+ return await this.client.fetch(`/admin/invites/${id}`, {
76
76
  method: "DELETE",
77
77
  headers,
78
78
  });
79
79
  },
80
80
  };
81
+ this.products = {
82
+ create: async (body, query, headers) => {
83
+ return await this.client.fetch(`/admin/products`, {
84
+ method: "POST",
85
+ headers,
86
+ body,
87
+ query,
88
+ });
89
+ },
90
+ };
81
91
  this.customer = {
82
92
  create: async (body, query, headers) => {
83
93
  return this.client.fetch(`/admin/customers`, {
@@ -114,6 +124,49 @@ export class Admin {
114
124
  });
115
125
  },
116
126
  };
127
+ this.collection = {
128
+ create: async (body, query, headers) => {
129
+ return this.client.fetch(`/admin/collections`, {
130
+ method: "POST",
131
+ headers,
132
+ body,
133
+ query,
134
+ });
135
+ },
136
+ update: async (id, body, query, headers) => {
137
+ return this.client.fetch(`/admin/collections/${id}`, {
138
+ method: "POST",
139
+ headers,
140
+ body,
141
+ query,
142
+ });
143
+ },
144
+ list: async (queryParams, headers) => {
145
+ return this.client.fetch(`/admin/collections`, {
146
+ headers,
147
+ query: queryParams,
148
+ });
149
+ },
150
+ retrieve: async (id, query, headers) => {
151
+ return this.client.fetch(`/admin/collections/${id}`, {
152
+ query,
153
+ headers,
154
+ });
155
+ },
156
+ delete: async (id, headers) => {
157
+ return this.client.fetch(`/admin/collections/${id}`, {
158
+ method: "DELETE",
159
+ headers,
160
+ });
161
+ },
162
+ updateProducts: async (id, body, headers) => {
163
+ return this.client.fetch(`/admin/collections/${id}/products`, {
164
+ method: "POST",
165
+ headers,
166
+ body,
167
+ });
168
+ },
169
+ };
117
170
  this.client = client;
118
171
  }
119
172
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/admin/index.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,KAAK;IAEhB,YAAY,MAAc;QAInB,WAAM,GAAG;YACd,MAAM,EAAE,KAAK,EACX,IAAiC,EACjC,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,gBAAgB,EAChB;oBACE,MAAM,EAAE,MAAM;oBACd,OAAO;oBACP,IAAI;oBACJ,KAAK;iBACN,CACF,CAAA;YACH,CAAC;YACD,MAAM,EAAE,KAAK,EACX,EAAU,EACV,IAAiC,EACjC,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,kBAAkB,EAAE,EAAE,EACtB;oBACE,MAAM,EAAE,MAAM;oBACd,OAAO;oBACP,IAAI;oBACJ,KAAK;iBACN,CACF,CAAA;YACH,CAAC;YACD,IAAI,EAAE,KAAK,EACT,WAAuD,EACvD,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAEtB,gBAAgB,EAAE;oBAClB,KAAK,EAAE,WAAW;oBAClB,OAAO;iBACR,CAAC,CAAA;YACJ,CAAC;YACD,QAAQ,EAAE,KAAK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,EAAU,EACV,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EAAE,EAAE,EACxB;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;YACD,MAAM,EAAE,KAAK,EAAE,EAAU,EAAE,OAAuB,EAAE,EAAE;gBACpD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,oBAAoB,EAAE,EAAE,EACxB;oBACE,MAAM,EAAE,QAAQ;oBAChB,OAAO;iBACR,CACF,CAAA;YACH,CAAC;SACF,CAAA;QA5MC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CA4MF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/admin/index.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,KAAK;IAEhB,YAAY,MAAc;QAInB,WAAM,GAAG;YACd,MAAM,EAAE,KAAK,EACX,IAAiC,EACjC,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,gBAAgB,EAChB;oBACE,MAAM,EAAE,MAAM;oBACd,OAAO;oBACP,IAAI;oBACJ,KAAK;iBACN,CACF,CAAA;YACH,CAAC;YACD,MAAM,EAAE,KAAK,EACX,EAAU,EACV,IAAiC,EACjC,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAAE,EAAE,EACtB;oBACE,MAAM,EAAE,MAAM;oBACd,OAAO;oBACP,IAAI;oBACJ,KAAK;iBACN,CACF,CAAA;YACH,CAAC;YACD,IAAI,EAAE,KAAK,EACT,WAAuD,EACvD,OAAuB,EACvB,EAAE;gBACF,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAE5B,gBAAgB,EAAE;oBAClB,KAAK,EAAE,WAAW;oBAClB,OAAO;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CAAA;YACH,CAAC;YACD,IAAI,EAAE,KAAK,EAAE,WAAwB,EAAE,OAAuB,EAAE,EAAE;gBAChE,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAEtB,oBAAoB,EAAE;oBACtB,OAAO;oBACP,KAAK,EAAE,WAAW;iBACnB,CAAC,CAAA;YACJ,CAAC;YACD,QAAQ,EAAE,KAAK,EACb,EAAU,EACV,KAAoB,EACpB,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;oBACE,KAAK;oBACL,OAAO;iBACR,CACF,CAAA;YACH,CAAC;YACD,MAAM,EAAE,KAAK,EAAE,EAAU,EAAE,OAAuB,EAAE,EAAE;gBACpD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,EAAE,EAC1B;oBACE,MAAM,EAAE,QAAQ;oBAChB,OAAO;iBACR,CACF,CAAA;YACH,CAAC;YACD,cAAc,EAAE,KAAK,EACnB,EAAU,EACV,IAA6C,EAC7C,OAAuB,EACvB,EAAE;gBACF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CACtB,sBAAsB,EAAE,WAAW,EACnC;oBACE,MAAM,EAAE,MAAM;oBACd,OAAO;oBACP,IAAI;iBACL,CACF,CAAA;YACH,CAAC;SACF,CAAA;QA/SC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CA+SF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/js-sdk",
3
- "version": "0.0.2-snapshot-20240528094636",
3
+ "version": "0.0.2-snapshot-20240529101443",
4
4
  "description": "SDK for the Medusa API",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "typescript": "^5.1.6"
29
29
  },
30
30
  "dependencies": {
31
- "@medusajs/types": "1.12.0-snapshot-20240528094636",
31
+ "@medusajs/types": "1.12.0-snapshot-20240529101443",
32
32
  "qs": "^6.12.1"
33
33
  },
34
34
  "scripts": {