@wildix/xbees-conversations-client 1.1.4 → 1.1.6

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.
@@ -1798,10 +1798,10 @@ const de_CommandError = async (output, context) => {
1798
1798
  case "wildix.xbees.conversations#TagsLimitReachedException":
1799
1799
  throw await de_TagsLimitReachedExceptionRes(parsedOutput, context);
1800
1800
  case "TargetNotEligibleException":
1801
- case "wildix.xbees.conversations#TargetNotEligibleException":
1801
+ case "wildix.xbees.kite#TargetNotEligibleException":
1802
1802
  throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
1803
1803
  case "TargetNotFoundException":
1804
- case "wildix.xbees.conversations#TargetNotFoundException":
1804
+ case "wildix.xbees.kite#TargetNotFoundException":
1805
1805
  throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
1806
1806
  case "MemberNotFoundException":
1807
1807
  case "wildix.xbees.conversations#MemberNotFoundException":
@@ -2056,41 +2056,41 @@ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
2056
2056
  });
2057
2057
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2058
2058
  };
2059
- const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
2059
+ const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
2060
2060
  const contents = (0, smithy_client_1.map)({});
2061
2061
  const data = parsedOutput.body;
2062
2062
  const doc = (0, smithy_client_1.take)(data, {
2063
2063
  'message': smithy_client_1.expectString,
2064
- 'reason': smithy_client_1.expectString,
2065
2064
  });
2066
2065
  Object.assign(contents, doc);
2067
- const exception = new models_0_1.TargetNotEligibleException({
2066
+ const exception = new models_0_1.TriggerNotFoundException({
2068
2067
  $metadata: deserializeMetadata(parsedOutput),
2069
2068
  ...contents
2070
2069
  });
2071
2070
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2072
2071
  };
2073
- const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
2072
+ const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
2074
2073
  const contents = (0, smithy_client_1.map)({});
2075
2074
  const data = parsedOutput.body;
2076
2075
  const doc = (0, smithy_client_1.take)(data, {
2077
2076
  'message': smithy_client_1.expectString,
2077
+ 'reason': smithy_client_1.expectString,
2078
2078
  });
2079
2079
  Object.assign(contents, doc);
2080
- const exception = new models_0_1.TargetNotFoundException({
2080
+ const exception = new models_0_1.TargetNotEligibleException({
2081
2081
  $metadata: deserializeMetadata(parsedOutput),
2082
2082
  ...contents
2083
2083
  });
2084
2084
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2085
2085
  };
2086
- const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
2086
+ const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
2087
2087
  const contents = (0, smithy_client_1.map)({});
2088
2088
  const data = parsedOutput.body;
2089
2089
  const doc = (0, smithy_client_1.take)(data, {
2090
2090
  'message': smithy_client_1.expectString,
2091
2091
  });
2092
2092
  Object.assign(contents, doc);
2093
- const exception = new models_0_1.TriggerNotFoundException({
2093
+ const exception = new models_0_1.TargetNotFoundException({
2094
2094
  $metadata: deserializeMetadata(parsedOutput),
2095
2095
  ...contents
2096
2096
  });
@@ -1685,10 +1685,10 @@ const de_CommandError = async (output, context) => {
1685
1685
  case "wildix.xbees.conversations#TagsLimitReachedException":
1686
1686
  throw await de_TagsLimitReachedExceptionRes(parsedOutput, context);
1687
1687
  case "TargetNotEligibleException":
1688
- case "wildix.xbees.conversations#TargetNotEligibleException":
1688
+ case "wildix.xbees.kite#TargetNotEligibleException":
1689
1689
  throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
1690
1690
  case "TargetNotFoundException":
1691
- case "wildix.xbees.conversations#TargetNotFoundException":
1691
+ case "wildix.xbees.kite#TargetNotFoundException":
1692
1692
  throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
1693
1693
  case "MemberNotFoundException":
1694
1694
  case "wildix.xbees.conversations#MemberNotFoundException":
@@ -1943,41 +1943,41 @@ const de_TagsLimitReachedExceptionRes = async (parsedOutput, context) => {
1943
1943
  });
1944
1944
  return __decorateServiceException(exception, parsedOutput.body);
1945
1945
  };
1946
- const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
1946
+ const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
1947
1947
  const contents = map({});
1948
1948
  const data = parsedOutput.body;
1949
1949
  const doc = take(data, {
1950
1950
  'message': __expectString,
1951
- 'reason': __expectString,
1952
1951
  });
1953
1952
  Object.assign(contents, doc);
1954
- const exception = new TargetNotEligibleException({
1953
+ const exception = new TriggerNotFoundException({
1955
1954
  $metadata: deserializeMetadata(parsedOutput),
1956
1955
  ...contents
1957
1956
  });
1958
1957
  return __decorateServiceException(exception, parsedOutput.body);
1959
1958
  };
1960
- const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
1959
+ const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
1961
1960
  const contents = map({});
1962
1961
  const data = parsedOutput.body;
1963
1962
  const doc = take(data, {
1964
1963
  'message': __expectString,
1964
+ 'reason': __expectString,
1965
1965
  });
1966
1966
  Object.assign(contents, doc);
1967
- const exception = new TargetNotFoundException({
1967
+ const exception = new TargetNotEligibleException({
1968
1968
  $metadata: deserializeMetadata(parsedOutput),
1969
1969
  ...contents
1970
1970
  });
1971
1971
  return __decorateServiceException(exception, parsedOutput.body);
1972
1972
  };
1973
- const de_TriggerNotFoundExceptionRes = async (parsedOutput, context) => {
1973
+ const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
1974
1974
  const contents = map({});
1975
1975
  const data = parsedOutput.body;
1976
1976
  const doc = take(data, {
1977
1977
  'message': __expectString,
1978
1978
  });
1979
1979
  Object.assign(contents, doc);
1980
- const exception = new TriggerNotFoundException({
1980
+ const exception = new TargetNotFoundException({
1981
1981
  $metadata: deserializeMetadata(parsedOutput),
1982
1982
  ...contents
1983
1983
  });
@@ -48,8 +48,6 @@ declare const CreateKiteChannelCommand_base: {
48
48
  * { // ActionElement Union: only one key present
49
49
  * button: { // ButtonElement
50
50
  * text: "STRING_VALUE", // required
51
- * variant: "contained" || "outlined",
52
- * disabled: true || false,
53
51
  * handler: { // ButtonHandler Union: only one key present
54
52
  * link: { // ButtonLinkHandler
55
53
  * url: "STRING_VALUE", // required
@@ -61,6 +59,8 @@ declare const CreateKiteChannelCommand_base: {
61
59
  * id: "STRING_VALUE", // required
62
60
  * },
63
61
  * },
62
+ * variant: "contained" || "outlined",
63
+ * disabled: true || false,
64
64
  * },
65
65
  * },
66
66
  * ],
@@ -173,8 +173,6 @@ declare const CreateKiteChannelCommand_base: {
173
173
  * {// Union: only one key present
174
174
  * button: {
175
175
  * text: "STRING_VALUE", // required
176
- * variant: "contained" || "outlined",
177
- * disabled: true || false,
178
176
  * handler: {// Union: only one key present
179
177
  * link: {
180
178
  * url: "STRING_VALUE", // required
@@ -186,6 +184,8 @@ declare const CreateKiteChannelCommand_base: {
186
184
  * id: "STRING_VALUE", // required
187
185
  * },
188
186
  * },
187
+ * variant: "contained" || "outlined",
188
+ * disabled: true || false,
189
189
  * },
190
190
  * },
191
191
  * ],
@@ -477,8 +477,6 @@ declare const DescribeEventCommand_base: {
477
477
  * // { // ActionElement Union: only one key present
478
478
  * // button: { // ButtonElement
479
479
  * // text: "STRING_VALUE", // required
480
- * // variant: "contained" || "outlined",
481
- * // disabled: true || false,
482
480
  * // handler: { // ButtonHandler Union: only one key present
483
481
  * // link: { // ButtonLinkHandler
484
482
  * // url: "STRING_VALUE", // required
@@ -490,6 +488,8 @@ declare const DescribeEventCommand_base: {
490
488
  * // id: "STRING_VALUE", // required
491
489
  * // },
492
490
  * // },
491
+ * // variant: "contained" || "outlined",
492
+ * // disabled: true || false,
493
493
  * // },
494
494
  * // },
495
495
  * // ],
@@ -605,8 +605,6 @@ declare const DescribeEventCommand_base: {
605
605
  * // {// Union: only one key present
606
606
  * // button: {
607
607
  * // text: "STRING_VALUE", // required
608
- * // variant: "contained" || "outlined",
609
- * // disabled: true || false,
610
608
  * // handler: {// Union: only one key present
611
609
  * // link: {
612
610
  * // url: "STRING_VALUE", // required
@@ -618,6 +616,8 @@ declare const DescribeEventCommand_base: {
618
616
  * // id: "STRING_VALUE", // required
619
617
  * // },
620
618
  * // },
619
+ * // variant: "contained" || "outlined",
620
+ * // disabled: true || false,
621
621
  * // },
622
622
  * // },
623
623
  * // ],
@@ -731,8 +731,6 @@ declare const DescribeEventCommand_base: {
731
731
  * // {// Union: only one key present
732
732
  * // button: {
733
733
  * // text: "STRING_VALUE", // required
734
- * // variant: "contained" || "outlined",
735
- * // disabled: true || false,
736
734
  * // handler: {// Union: only one key present
737
735
  * // link: {
738
736
  * // url: "STRING_VALUE", // required
@@ -744,6 +742,8 @@ declare const DescribeEventCommand_base: {
744
742
  * // id: "STRING_VALUE", // required
745
743
  * // },
746
744
  * // },
745
+ * // variant: "contained" || "outlined",
746
+ * // disabled: true || false,
747
747
  * // },
748
748
  * // },
749
749
  * // ],
@@ -833,8 +833,6 @@ declare const DescribeEventCommand_base: {
833
833
  * // {// Union: only one key present
834
834
  * // button: {
835
835
  * // text: "STRING_VALUE", // required
836
- * // variant: "contained" || "outlined",
837
- * // disabled: true || false,
838
836
  * // handler: {// Union: only one key present
839
837
  * // link: {
840
838
  * // url: "STRING_VALUE", // required
@@ -846,6 +844,8 @@ declare const DescribeEventCommand_base: {
846
844
  * // id: "STRING_VALUE", // required
847
845
  * // },
848
846
  * // },
847
+ * // variant: "contained" || "outlined",
848
+ * // disabled: true || false,
849
849
  * // },
850
850
  * // },
851
851
  * // ],
@@ -917,8 +917,6 @@ declare const DescribeEventCommand_base: {
917
917
  * // {// Union: only one key present
918
918
  * // button: {
919
919
  * // text: "STRING_VALUE", // required
920
- * // variant: "contained" || "outlined",
921
- * // disabled: true || false,
922
920
  * // handler: {// Union: only one key present
923
921
  * // link: {
924
922
  * // url: "STRING_VALUE", // required
@@ -930,6 +928,8 @@ declare const DescribeEventCommand_base: {
930
928
  * // id: "STRING_VALUE", // required
931
929
  * // },
932
930
  * // },
931
+ * // variant: "contained" || "outlined",
932
+ * // disabled: true || false,
933
933
  * // },
934
934
  * // },
935
935
  * // ],
@@ -49,8 +49,6 @@ declare const GetMessageCommand_base: {
49
49
  * // { // ActionElement Union: only one key present
50
50
  * // button: { // ButtonElement
51
51
  * // text: "STRING_VALUE", // required
52
- * // variant: "contained" || "outlined",
53
- * // disabled: true || false,
54
52
  * // handler: { // ButtonHandler Union: only one key present
55
53
  * // link: { // ButtonLinkHandler
56
54
  * // url: "STRING_VALUE", // required
@@ -62,6 +60,8 @@ declare const GetMessageCommand_base: {
62
60
  * // id: "STRING_VALUE", // required
63
61
  * // },
64
62
  * // },
63
+ * // variant: "contained" || "outlined",
64
+ * // disabled: true || false,
65
65
  * // },
66
66
  * // },
67
67
  * // ],
@@ -51,8 +51,6 @@ declare const ListMessagesCommand_base: {
51
51
  * // { // ActionElement Union: only one key present
52
52
  * // button: { // ButtonElement
53
53
  * // text: "STRING_VALUE", // required
54
- * // variant: "contained" || "outlined",
55
- * // disabled: true || false,
56
54
  * // handler: { // ButtonHandler Union: only one key present
57
55
  * // link: { // ButtonLinkHandler
58
56
  * // url: "STRING_VALUE", // required
@@ -64,6 +62,8 @@ declare const ListMessagesCommand_base: {
64
62
  * // id: "STRING_VALUE", // required
65
63
  * // },
66
64
  * // },
65
+ * // variant: "contained" || "outlined",
66
+ * // disabled: true || false,
67
67
  * // },
68
68
  * // },
69
69
  * // ],
@@ -51,8 +51,6 @@ declare const ListPinnedMessagesCommand_base: {
51
51
  * // { // ActionElement Union: only one key present
52
52
  * // button: { // ButtonElement
53
53
  * // text: "STRING_VALUE", // required
54
- * // variant: "contained" || "outlined",
55
- * // disabled: true || false,
56
54
  * // handler: { // ButtonHandler Union: only one key present
57
55
  * // link: { // ButtonLinkHandler
58
56
  * // url: "STRING_VALUE", // required
@@ -64,6 +62,8 @@ declare const ListPinnedMessagesCommand_base: {
64
62
  * // id: "STRING_VALUE", // required
65
63
  * // },
66
64
  * // },
65
+ * // variant: "contained" || "outlined",
66
+ * // disabled: true || false,
67
67
  * // },
68
68
  * // },
69
69
  * // ],
@@ -46,8 +46,6 @@ declare const PartialUpdateMessageCommand_base: {
46
46
  * { // ActionElement Union: only one key present
47
47
  * button: { // ButtonElement
48
48
  * text: "STRING_VALUE", // required
49
- * variant: "contained" || "outlined",
50
- * disabled: true || false,
51
49
  * handler: { // ButtonHandler Union: only one key present
52
50
  * link: { // ButtonLinkHandler
53
51
  * url: "STRING_VALUE", // required
@@ -59,6 +57,8 @@ declare const PartialUpdateMessageCommand_base: {
59
57
  * id: "STRING_VALUE", // required
60
58
  * },
61
59
  * },
60
+ * variant: "contained" || "outlined",
61
+ * disabled: true || false,
62
62
  * },
63
63
  * },
64
64
  * ],
@@ -176,8 +176,6 @@ declare const PartialUpdateMessageCommand_base: {
176
176
  * // { // ActionElement Union: only one key present
177
177
  * // button: { // ButtonElement
178
178
  * // text: "STRING_VALUE", // required
179
- * // variant: "contained" || "outlined",
180
- * // disabled: true || false,
181
179
  * // handler: { // ButtonHandler Union: only one key present
182
180
  * // link: { // ButtonLinkHandler
183
181
  * // url: "STRING_VALUE", // required
@@ -189,6 +187,8 @@ declare const PartialUpdateMessageCommand_base: {
189
187
  * // id: "STRING_VALUE", // required
190
188
  * // },
191
189
  * // },
190
+ * // variant: "contained" || "outlined",
191
+ * // disabled: true || false,
192
192
  * // },
193
193
  * // },
194
194
  * // ],
@@ -57,8 +57,6 @@ declare const SendGiphyCommand_base: {
57
57
  * // { // ActionElement Union: only one key present
58
58
  * // button: { // ButtonElement
59
59
  * // text: "STRING_VALUE", // required
60
- * // variant: "contained" || "outlined",
61
- * // disabled: true || false,
62
60
  * // handler: { // ButtonHandler Union: only one key present
63
61
  * // link: { // ButtonLinkHandler
64
62
  * // url: "STRING_VALUE", // required
@@ -70,6 +68,8 @@ declare const SendGiphyCommand_base: {
70
68
  * // id: "STRING_VALUE", // required
71
69
  * // },
72
70
  * // },
71
+ * // variant: "contained" || "outlined",
72
+ * // disabled: true || false,
73
73
  * // },
74
74
  * // },
75
75
  * // ],
@@ -42,8 +42,6 @@ declare const SendMessageCommand_base: {
42
42
  * { // ActionElement Union: only one key present
43
43
  * button: { // ButtonElement
44
44
  * text: "STRING_VALUE", // required
45
- * variant: "contained" || "outlined",
46
- * disabled: true || false,
47
45
  * handler: { // ButtonHandler Union: only one key present
48
46
  * link: { // ButtonLinkHandler
49
47
  * url: "STRING_VALUE", // required
@@ -55,6 +53,8 @@ declare const SendMessageCommand_base: {
55
53
  * id: "STRING_VALUE", // required
56
54
  * },
57
55
  * },
56
+ * variant: "contained" || "outlined",
57
+ * disabled: true || false,
58
58
  * },
59
59
  * },
60
60
  * ],
@@ -170,8 +170,6 @@ declare const SendMessageCommand_base: {
170
170
  * // { // ActionElement Union: only one key present
171
171
  * // button: { // ButtonElement
172
172
  * // text: "STRING_VALUE", // required
173
- * // variant: "contained" || "outlined",
174
- * // disabled: true || false,
175
173
  * // handler: { // ButtonHandler Union: only one key present
176
174
  * // link: { // ButtonLinkHandler
177
175
  * // url: "STRING_VALUE", // required
@@ -183,6 +181,8 @@ declare const SendMessageCommand_base: {
183
181
  * // id: "STRING_VALUE", // required
184
182
  * // },
185
183
  * // },
184
+ * // variant: "contained" || "outlined",
185
+ * // disabled: true || false,
186
186
  * // },
187
187
  * // },
188
188
  * // ],
@@ -42,8 +42,6 @@ declare const UpdateMessageCommand_base: {
42
42
  * { // ActionElement Union: only one key present
43
43
  * button: { // ButtonElement
44
44
  * text: "STRING_VALUE", // required
45
- * variant: "contained" || "outlined",
46
- * disabled: true || false,
47
45
  * handler: { // ButtonHandler Union: only one key present
48
46
  * link: { // ButtonLinkHandler
49
47
  * url: "STRING_VALUE", // required
@@ -55,6 +53,8 @@ declare const UpdateMessageCommand_base: {
55
53
  * id: "STRING_VALUE", // required
56
54
  * },
57
55
  * },
56
+ * variant: "contained" || "outlined",
57
+ * disabled: true || false,
58
58
  * },
59
59
  * },
60
60
  * ],
@@ -171,8 +171,6 @@ declare const UpdateMessageCommand_base: {
171
171
  * // { // ActionElement Union: only one key present
172
172
  * // button: { // ButtonElement
173
173
  * // text: "STRING_VALUE", // required
174
- * // variant: "contained" || "outlined",
175
- * // disabled: true || false,
176
174
  * // handler: { // ButtonHandler Union: only one key present
177
175
  * // link: { // ButtonLinkHandler
178
176
  * // url: "STRING_VALUE", // required
@@ -184,6 +182,8 @@ declare const UpdateMessageCommand_base: {
184
182
  * // id: "STRING_VALUE", // required
185
183
  * // },
186
184
  * // },
185
+ * // variant: "contained" || "outlined",
186
+ * // disabled: true || false,
187
187
  * // },
188
188
  * // },
189
189
  * // ],
@@ -192,9 +192,9 @@ export type ButtonVariant = typeof ButtonVariant[keyof typeof ButtonVariant];
192
192
  */
193
193
  export interface ButtonElement {
194
194
  text: string;
195
+ handler: ButtonHandler;
195
196
  variant?: ButtonVariant;
196
197
  disabled?: boolean;
197
- handler?: ButtonHandler;
198
198
  }
199
199
  /**
200
200
  * @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/xbees-conversations-client",
3
3
  "description": "@wildix/xbees-conversations-client client",
4
- "version": "1.1.4",
4
+ "version": "1.1.6",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",