@wildix/wms-api-client 1.1.13 → 1.1.16

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.
@@ -13,6 +13,8 @@ exports.AclGroupPermissionAbility = {
13
13
  CAN: "can",
14
14
  CANNOT: "cannot",
15
15
  NO: "no",
16
+ NOUSE: "nouse",
17
+ USE: "use",
16
18
  YES: "yes",
17
19
  };
18
20
  exports.ResponseType = {
@@ -78,7 +78,7 @@ const se_DeletePbxAclGroupCommand = async (input, context) => {
78
78
  b.bp("/api/v1/pbx/aclgroups/{id}");
79
79
  b.p('id', () => input.id.toString(), '{id}', false);
80
80
  let body;
81
- b.m("POST")
81
+ b.m("DELETE")
82
82
  .h(headers)
83
83
  .b(body);
84
84
  return b.build();
@@ -10,6 +10,8 @@ export const AclGroupPermissionAbility = {
10
10
  CAN: "can",
11
11
  CANNOT: "cannot",
12
12
  NO: "no",
13
+ NOUSE: "nouse",
14
+ USE: "use",
13
15
  YES: "yes",
14
16
  };
15
17
  export const ResponseType = {
@@ -72,7 +72,7 @@ export const se_DeletePbxAclGroupCommand = async (input, context) => {
72
72
  b.bp("/api/v1/pbx/aclgroups/{id}");
73
73
  b.p('id', () => input.id.toString(), '{id}', false);
74
74
  let body;
75
- b.m("POST")
75
+ b.m("DELETE")
76
76
  .h(headers)
77
77
  .b(body);
78
78
  return b.build();
@@ -41,7 +41,7 @@ declare const CreatePbxAclGroupCommand_base: {
41
41
  * wcgrp: "STRING_VALUE",
42
42
  * rules: [ // AclGroupRulesList // required
43
43
  * { // AclGroupRule
44
- * ability: "can" || "cannot" || "yes" || "no",
44
+ * ability: "use" || "nouse" || "can" || "cannot" || "yes" || "no",
45
45
  * group: "STRING_VALUE",
46
46
  * rule: "STRING_VALUE",
47
47
  * },
@@ -51,15 +51,15 @@ declare const CreatePbxAclGroupCommand_base: {
51
51
  * const response = await client.send(command);
52
52
  * // { // CreatePbxAclGroupOutput
53
53
  * // type: "result" || "error", // required
54
- * // result: { // CreatePbxAclGroupResult
55
- * // id: "STRING_VALUE", // required
54
+ * // result: { // AclGroup
55
+ * // id: Number("int"), // required
56
56
  * // name: "STRING_VALUE", // required
57
57
  * // dn: "STRING_VALUE", // required
58
58
  * // wcgrp: "STRING_VALUE", // required
59
59
  * // inherits: "STRING_VALUE", // required
60
60
  * // rules: [ // AclGroupRulesList // required
61
61
  * // { // AclGroupRule
62
- * // ability: "can" || "cannot" || "yes" || "no",
62
+ * // ability: "use" || "nouse" || "can" || "cannot" || "yes" || "no",
63
63
  * // group: "STRING_VALUE",
64
64
  * // rule: "STRING_VALUE",
65
65
  * // },
@@ -49,7 +49,7 @@ declare const GetPbxAclGroupsPermissionsCommand_base: {
49
49
  * // type: "result" || "error", // required
50
50
  * // result: [ // GetPbxAclGroupsPermissionsResult // required
51
51
  * // { // AclGroupPermission
52
- * // ability: "can" || "cannot" || "yes" || "no", // required
52
+ * // ability: "use" || "nouse" || "can" || "cannot" || "yes" || "no", // required
53
53
  * // key: "STRING_VALUE", // required
54
54
  * // name: "STRING_VALUE", // required
55
55
  * // containSubGroups: true || false, // required
@@ -23,12 +23,34 @@ export declare const AclGroupPermissionAbility: {
23
23
  readonly CAN: "can";
24
24
  readonly CANNOT: "cannot";
25
25
  readonly NO: "no";
26
+ readonly NOUSE: "nouse";
27
+ readonly USE: "use";
26
28
  readonly YES: "yes";
27
29
  };
28
30
  /**
29
31
  * @public
30
32
  */
31
33
  export type AclGroupPermissionAbility = typeof AclGroupPermissionAbility[keyof typeof AclGroupPermissionAbility];
34
+ /**
35
+ * @public
36
+ */
37
+ export interface AclGroupRule {
38
+ ability?: AclGroupPermissionAbility;
39
+ group?: string;
40
+ rule?: string;
41
+ }
42
+ /**
43
+ * @public
44
+ */
45
+ export interface AclGroup {
46
+ id: number;
47
+ name: string;
48
+ dn: string;
49
+ wcgrp: string;
50
+ inherits: string;
51
+ rules: (AclGroupRule)[];
52
+ adminRules: string;
53
+ }
32
54
  /**
33
55
  * @public
34
56
  */
@@ -56,14 +78,6 @@ export interface AclGroupPermission {
56
78
  containSubGroups: boolean;
57
79
  groups: (AclGroupPermissionItem)[];
58
80
  }
59
- /**
60
- * @public
61
- */
62
- export interface AclGroupRule {
63
- ability?: AclGroupPermissionAbility;
64
- group?: string;
65
- rule?: string;
66
- }
67
81
  /**
68
82
  * @public
69
83
  */
@@ -73,18 +87,6 @@ export interface CreatePbxAclGroupInput {
73
87
  wcgrp?: string;
74
88
  rules: (AclGroupRule)[];
75
89
  }
76
- /**
77
- * @public
78
- */
79
- export interface CreatePbxAclGroupResult {
80
- id: string;
81
- name: string;
82
- dn: string;
83
- wcgrp: string;
84
- inherits: string;
85
- rules: (AclGroupRule)[];
86
- adminRules: string;
87
- }
88
90
  /**
89
91
  * @public
90
92
  * @enum
@@ -102,7 +104,7 @@ export type ResponseType = typeof ResponseType[keyof typeof ResponseType];
102
104
  */
103
105
  export interface CreatePbxAclGroupOutput {
104
106
  type: ResponseType;
105
- result: CreatePbxAclGroupResult;
107
+ result: AclGroup;
106
108
  }
107
109
  /**
108
110
  * @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wms-api-client",
3
3
  "description": "@wildix/wms-api-client client",
4
- "version": "1.1.13",
4
+ "version": "1.1.16",
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",