@elasticpath/js-sdk 33.0.0 → 33.1.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/dist/index.cjs.js CHANGED
@@ -530,7 +530,7 @@ if (!globalThis.fetch) {
530
530
  globalThis.Response = fetch$1.Response;
531
531
  }
532
532
 
533
- var version = "33.0.0";
533
+ var version = "33.1.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
@@ -5963,6 +5963,40 @@ var CustomApisEndpoint = /*#__PURE__*/function (_CRUDExtend) {
5963
5963
  value: function DeleteEntry(customApiId, customApiEntryId) {
5964
5964
  return this.request.send("".concat(this.endpoint, "/").concat(customApiId, "/entries/").concat(customApiEntryId), 'DELETE');
5965
5965
  }
5966
+ }, {
5967
+ key: "GetEntriesBySlug",
5968
+ value: function GetEntriesBySlug(slug) {
5969
+ var limit = this.limit,
5970
+ offset = this.offset,
5971
+ sort = this.sort,
5972
+ filter = this.filter;
5973
+ return this.request.send(buildURL("extensions/".concat(slug), {
5974
+ limit: limit,
5975
+ offset: offset,
5976
+ sort: sort,
5977
+ filter: filter
5978
+ }), 'GET', undefined, undefined, this);
5979
+ }
5980
+ }, {
5981
+ key: "GetEntryBySlug",
5982
+ value: function GetEntryBySlug(slug, entryId) {
5983
+ return this.request.send("extensions/".concat(slug, "/").concat(entryId), 'GET');
5984
+ }
5985
+ }, {
5986
+ key: "CreateEntryBySlug",
5987
+ value: function CreateEntryBySlug(slug, body) {
5988
+ return this.request.send("extensions/".concat(slug), 'POST', body);
5989
+ }
5990
+ }, {
5991
+ key: "UpdateEntryBySlug",
5992
+ value: function UpdateEntryBySlug(slug, entryId, body) {
5993
+ return this.request.send("extensions/".concat(slug, "/").concat(entryId), 'PUT', body);
5994
+ }
5995
+ }, {
5996
+ key: "DeleteEntryBySlug",
5997
+ value: function DeleteEntryBySlug(slug, entryId) {
5998
+ return this.request.send("extensions/".concat(slug, "/").concat(entryId), 'DELETE');
5999
+ }
5966
6000
  }]);
5967
6001
  return CustomApisEndpoint;
5968
6002
  }(CRUDExtend);
package/dist/index.d.ts CHANGED
@@ -8750,6 +8750,28 @@ interface CustomApisEndpoint {
8750
8750
  ): Promise<ResponseBody>
8751
8751
 
8752
8752
  DeleteEntry<T = any>(customApiId: string, customApiEntryId: string): Promise<T>
8753
+
8754
+ GetEntriesBySlug<T = any>(slug: string): Promise<T>
8755
+
8756
+ GetEntryBySlug<T = any>(slug: string, entryId: string): Promise<T>
8757
+
8758
+ CreateEntryBySlug<RequestBody = any, ResponseBody = any>(
8759
+ slug: string,
8760
+ body: RequestBody
8761
+ ): Promise<ResponseBody>
8762
+
8763
+ UpdateEntryBySlug<RequestBody = any, ResponseBody = any>(
8764
+ slug: string,
8765
+ entryId: string,
8766
+ body: RequestBody
8767
+ ): Promise<ResponseBody>
8768
+
8769
+ DeleteEntryBySlug<T = any>(slug: string, entryId: string): Promise<T>
8770
+
8771
+ Filter(filter: any): CustomApisEndpoint
8772
+ Limit(value: number): CustomApisEndpoint
8773
+ Offset(value: number): CustomApisEndpoint
8774
+ Sort(value: string): CustomApisEndpoint
8753
8775
  }
8754
8776
 
8755
8777
  /**
package/dist/index.esm.js CHANGED
@@ -519,7 +519,7 @@ if (!globalThis.fetch) {
519
519
  globalThis.Response = Response;
520
520
  }
521
521
 
522
- var version = "33.0.0";
522
+ var version = "33.1.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
@@ -5952,6 +5952,40 @@ var CustomApisEndpoint = /*#__PURE__*/function (_CRUDExtend) {
5952
5952
  value: function DeleteEntry(customApiId, customApiEntryId) {
5953
5953
  return this.request.send("".concat(this.endpoint, "/").concat(customApiId, "/entries/").concat(customApiEntryId), 'DELETE');
5954
5954
  }
5955
+ }, {
5956
+ key: "GetEntriesBySlug",
5957
+ value: function GetEntriesBySlug(slug) {
5958
+ var limit = this.limit,
5959
+ offset = this.offset,
5960
+ sort = this.sort,
5961
+ filter = this.filter;
5962
+ return this.request.send(buildURL("extensions/".concat(slug), {
5963
+ limit: limit,
5964
+ offset: offset,
5965
+ sort: sort,
5966
+ filter: filter
5967
+ }), 'GET', undefined, undefined, this);
5968
+ }
5969
+ }, {
5970
+ key: "GetEntryBySlug",
5971
+ value: function GetEntryBySlug(slug, entryId) {
5972
+ return this.request.send("extensions/".concat(slug, "/").concat(entryId), 'GET');
5973
+ }
5974
+ }, {
5975
+ key: "CreateEntryBySlug",
5976
+ value: function CreateEntryBySlug(slug, body) {
5977
+ return this.request.send("extensions/".concat(slug), 'POST', body);
5978
+ }
5979
+ }, {
5980
+ key: "UpdateEntryBySlug",
5981
+ value: function UpdateEntryBySlug(slug, entryId, body) {
5982
+ return this.request.send("extensions/".concat(slug, "/").concat(entryId), 'PUT', body);
5983
+ }
5984
+ }, {
5985
+ key: "DeleteEntryBySlug",
5986
+ value: function DeleteEntryBySlug(slug, entryId) {
5987
+ return this.request.send("extensions/".concat(slug, "/").concat(entryId), 'DELETE');
5988
+ }
5955
5989
  }]);
5956
5990
  return CustomApisEndpoint;
5957
5991
  }(CRUDExtend);
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "33.0.0";
1088
+ var version = "33.1.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
@@ -7124,6 +7124,40 @@
7124
7124
  value: function DeleteEntry(customApiId, customApiEntryId) {
7125
7125
  return this.request.send("".concat(this.endpoint, "/").concat(customApiId, "/entries/").concat(customApiEntryId), 'DELETE');
7126
7126
  }
7127
+ }, {
7128
+ key: "GetEntriesBySlug",
7129
+ value: function GetEntriesBySlug(slug) {
7130
+ var limit = this.limit,
7131
+ offset = this.offset,
7132
+ sort = this.sort,
7133
+ filter = this.filter;
7134
+ return this.request.send(buildURL("extensions/".concat(slug), {
7135
+ limit: limit,
7136
+ offset: offset,
7137
+ sort: sort,
7138
+ filter: filter
7139
+ }), 'GET', undefined, undefined, this);
7140
+ }
7141
+ }, {
7142
+ key: "GetEntryBySlug",
7143
+ value: function GetEntryBySlug(slug, entryId) {
7144
+ return this.request.send("extensions/".concat(slug, "/").concat(entryId), 'GET');
7145
+ }
7146
+ }, {
7147
+ key: "CreateEntryBySlug",
7148
+ value: function CreateEntryBySlug(slug, body) {
7149
+ return this.request.send("extensions/".concat(slug), 'POST', body);
7150
+ }
7151
+ }, {
7152
+ key: "UpdateEntryBySlug",
7153
+ value: function UpdateEntryBySlug(slug, entryId, body) {
7154
+ return this.request.send("extensions/".concat(slug, "/").concat(entryId), 'PUT', body);
7155
+ }
7156
+ }, {
7157
+ key: "DeleteEntryBySlug",
7158
+ value: function DeleteEntryBySlug(slug, entryId) {
7159
+ return this.request.send("extensions/".concat(slug, "/").concat(entryId), 'DELETE');
7160
+ }
7127
7161
  }]);
7128
7162
  return CustomApisEndpoint;
7129
7163
  }(CRUDExtend);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elasticpath/js-sdk",
3
3
  "description": "SDK for the Elastic Path eCommerce API",
4
- "version": "33.0.0",
4
+ "version": "33.1.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [