@zennify/sdk-js 1.0.0-beta.26 → 1.0.0-beta.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zennify/sdk-js",
3
- "version": "1.0.0-beta.26",
3
+ "version": "1.0.0-beta.27",
4
4
  "description": "A simple package to work with https://api.zennify.app",
5
5
  "main": "dist/main.js",
6
6
  "keywords": [],
package/src/errors.ts CHANGED
@@ -6,6 +6,7 @@ export interface APIErrors {
6
6
  'UNKNOWN_TRANSLATION': {
7
7
  code: keyof APIErrors | string
8
8
  };
9
+ 'INVALID_DISCORD_CHANNEL_FOR_MESSAGE': {}
9
10
  'MISSING_PERMISSIONS': {};
10
11
  'METHOD_NOT_ALLOWED': {};
11
12
  'EXPECTED_AN_OBJECT_ARRAY': ExpectedAdditionalData;
@@ -255,6 +255,10 @@
255
255
  "name": "Unknown Discord channel",
256
256
  "message": "Perhaps this channel no longer exists."
257
257
  },
258
+ "INVALID_DISCORD_CHANNEL_FOR_MESSAGE": {
259
+ "name": "Invalid channel for messages",
260
+ "message": "The selected channel doesn't support messages"
261
+ },
258
262
  "UNKNOWN_PRODUCT": {
259
263
  "name": "Unknown product",
260
264
  "message": "Perhaps this product no longer exists."
@@ -255,6 +255,10 @@
255
255
  "name": "Canal do Discord desconhecido",
256
256
  "message": "Talvez esse canal não exista mais."
257
257
  },
258
+ "INVALID_DISCORD_CHANNEL_FOR_MESSAGE": {
259
+ "name": "Canal inválido para envio",
260
+ "message": "O canal selecionado não suporta mensagens"
261
+ },
258
262
  "UNKNOWN_PRODUCT": {
259
263
  "name": "Produto desconhecido",
260
264
  "message": "Talvez esse produto não exista mais."
package/types/errors.d.ts CHANGED
@@ -5,6 +5,7 @@ export interface APIErrors {
5
5
  'UNKNOWN_TRANSLATION': {
6
6
  code: keyof APIErrors | string;
7
7
  };
8
+ 'INVALID_DISCORD_CHANNEL_FOR_MESSAGE': {};
8
9
  'MISSING_PERMISSIONS': {};
9
10
  'METHOD_NOT_ALLOWED': {};
10
11
  'EXPECTED_AN_OBJECT_ARRAY': ExpectedAdditionalData;