glitch-javascript-sdk 2.5.2 → 2.5.3

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.d.ts CHANGED
@@ -7115,6 +7115,10 @@ declare class DiscordMarketplace {
7115
7115
  * Resubmit a post after making requested changes (Game Developer).
7116
7116
  */
7117
7117
  static resubmitOrder<T>(id: string): AxiosPromise<Response<T>>;
7118
+ /**
7119
+ * Get available text channels for a specific Discord listing.
7120
+ */
7121
+ static getChannels<T>(id: string): AxiosPromise<Response<T>>;
7118
7122
  }
7119
7123
 
7120
7124
  interface Route {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -87,6 +87,13 @@ class DiscordMarketplace {
87
87
  public static resubmitOrder<T>(id: string): AxiosPromise<Response<T>> {
88
88
  return Requests.processRoute(DiscordMarketplaceRoute.routes.resubmitOrder, {}, { id });
89
89
  }
90
+
91
+ /**
92
+ * Get available text channels for a specific Discord listing.
93
+ */
94
+ public static getChannels<T>(id: string): AxiosPromise<Response<T>> {
95
+ return Requests.processRoute(DiscordMarketplaceRoute.routes.getChannels, {}, { id });
96
+ }
90
97
  }
91
98
 
92
99
  export default DiscordMarketplace;
@@ -18,6 +18,7 @@ class DiscordMarketplaceRoute {
18
18
  rejectOrder: { url: '/discord-marketplace/orders/{id}/reject', method: HTTP_METHODS.POST },
19
19
  requestChanges: { url: '/discord-marketplace/orders/{id}/request-changes', method: HTTP_METHODS.POST },
20
20
  resubmitOrder: { url: '/discord-marketplace/orders/{id}/resubmit', method: HTTP_METHODS.POST },
21
+ getChannels: { url: '/discord-marketplace/listings/{id}/channels', method: HTTP_METHODS.GET },
21
22
  };
22
23
  }
23
24