namirasoft-bill-watch 1.4.2 → 1.4.4
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/NamirasoftBillWatchServer.d.ts +8 -0
- package/dist/NamirasoftBillWatchServer.js +9 -1
- package/dist/NamirasoftBillWatchServer.js.map +1 -1
- package/dist/NamirasoftBillWatchServerRule.d.ts +18 -0
- package/dist/NamirasoftBillWatchServerRule.js +64 -0
- package/dist/NamirasoftBillWatchServerRule.js.map +1 -0
- package/dist/NamirasoftBillWatchServerRuleCategory.d.ts +16 -0
- package/dist/NamirasoftBillWatchServerRuleCategory.js +56 -0
- package/dist/NamirasoftBillWatchServerRuleCategory.js.map +1 -0
- package/dist/NamirasoftBillWatchServerRuleField.d.ts +17 -0
- package/dist/NamirasoftBillWatchServerRuleField.js +64 -0
- package/dist/NamirasoftBillWatchServerRuleField.js.map +1 -0
- package/dist/NamirasoftBillWatchServerRuleTag.d.ts +17 -0
- package/dist/NamirasoftBillWatchServerRuleTag.js +64 -0
- package/dist/NamirasoftBillWatchServerRuleTag.js.map +1 -0
- package/dist/command/AWSCreateCommand.js +43 -7
- package/dist/command/AWSCreateCommand.js.map +1 -1
- package/dist/command/AWSUpdateCommand.js +43 -7
- package/dist/command/AWSUpdateCommand.js.map +1 -1
- package/dist/command/AzureCreateCommand.js +36 -9
- package/dist/command/AzureCreateCommand.js.map +1 -1
- package/dist/command/AzureUpdateCommand.js +36 -9
- package/dist/command/AzureUpdateCommand.js.map +1 -1
- package/dist/command/GCPCreateCommand.js +36 -9
- package/dist/command/GCPCreateCommand.js.map +1 -1
- package/dist/command/GCPUpdateCommand.js +36 -9
- package/dist/command/GCPUpdateCommand.js.map +1 -1
- package/dist/command/RuleCategoryCommand.d.ts +4 -0
- package/dist/command/RuleCategoryCommand.js +21 -0
- package/dist/command/RuleCategoryCommand.js.map +1 -0
- package/dist/command/RuleCategoryCreateCommand.d.ts +5 -0
- package/dist/command/RuleCategoryCreateCommand.js +49 -0
- package/dist/command/RuleCategoryCreateCommand.js.map +1 -0
- package/dist/command/RuleCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/RuleCategoryDeleteCommand.js +38 -0
- package/dist/command/RuleCategoryDeleteCommand.js.map +1 -0
- package/dist/command/RuleCategoryGetCommand.d.ts +5 -0
- package/dist/command/RuleCategoryGetCommand.js +38 -0
- package/dist/command/RuleCategoryGetCommand.js.map +1 -0
- package/dist/command/RuleCategoryListCommand.d.ts +5 -0
- package/dist/command/RuleCategoryListCommand.js +38 -0
- package/dist/command/RuleCategoryListCommand.js.map +1 -0
- package/dist/command/RuleCommand.d.ts +4 -0
- package/dist/command/RuleCommand.js +23 -0
- package/dist/command/RuleCommand.js.map +1 -0
- package/dist/command/RuleCreateCommand.d.ts +5 -0
- package/dist/command/RuleCreateCommand.js +103 -0
- package/dist/command/RuleCreateCommand.js.map +1 -0
- package/dist/command/RuleDeleteCommand.d.ts +5 -0
- package/dist/command/RuleDeleteCommand.js +38 -0
- package/dist/command/RuleDeleteCommand.js.map +1 -0
- package/dist/command/RuleFieldCommand.d.ts +4 -0
- package/dist/command/RuleFieldCommand.js +23 -0
- package/dist/command/RuleFieldCommand.js.map +1 -0
- package/dist/command/RuleFieldCreateCommand.d.ts +5 -0
- package/dist/command/RuleFieldCreateCommand.js +58 -0
- package/dist/command/RuleFieldCreateCommand.js.map +1 -0
- package/dist/command/RuleFieldDeleteCommand.d.ts +5 -0
- package/dist/command/RuleFieldDeleteCommand.js +38 -0
- package/dist/command/RuleFieldDeleteCommand.js.map +1 -0
- package/dist/command/RuleFieldGetCommand.d.ts +5 -0
- package/dist/command/RuleFieldGetCommand.js +38 -0
- package/dist/command/RuleFieldGetCommand.js.map +1 -0
- package/dist/command/RuleFieldListCommand.d.ts +5 -0
- package/dist/command/RuleFieldListCommand.js +38 -0
- package/dist/command/RuleFieldListCommand.js.map +1 -0
- package/dist/command/RuleFieldUpdateCommand.d.ts +5 -0
- package/dist/command/RuleFieldUpdateCommand.js +58 -0
- package/dist/command/RuleFieldUpdateCommand.js.map +1 -0
- package/dist/command/RuleGetCommand.d.ts +5 -0
- package/dist/command/RuleGetCommand.js +38 -0
- package/dist/command/RuleGetCommand.js.map +1 -0
- package/dist/command/RuleListCommand.d.ts +5 -0
- package/dist/command/RuleListCommand.js +38 -0
- package/dist/command/RuleListCommand.js.map +1 -0
- package/dist/command/RuleTagCommand.d.ts +4 -0
- package/dist/command/RuleTagCommand.js +23 -0
- package/dist/command/RuleTagCommand.js.map +1 -0
- package/dist/command/RuleTagCreateCommand.d.ts +5 -0
- package/dist/command/RuleTagCreateCommand.js +58 -0
- package/dist/command/RuleTagCreateCommand.js.map +1 -0
- package/dist/command/RuleTagDeleteCommand.d.ts +5 -0
- package/dist/command/RuleTagDeleteCommand.js +38 -0
- package/dist/command/RuleTagDeleteCommand.js.map +1 -0
- package/dist/command/RuleTagGetCommand.d.ts +5 -0
- package/dist/command/RuleTagGetCommand.js +38 -0
- package/dist/command/RuleTagGetCommand.js.map +1 -0
- package/dist/command/RuleTagListCommand.d.ts +5 -0
- package/dist/command/RuleTagListCommand.js +38 -0
- package/dist/command/RuleTagListCommand.js.map +1 -0
- package/dist/command/RuleTagUpdateCommand.d.ts +5 -0
- package/dist/command/RuleTagUpdateCommand.js +58 -0
- package/dist/command/RuleTagUpdateCommand.js.map +1 -0
- package/dist/command/RuleUpdateCommand.d.ts +5 -0
- package/dist/command/RuleUpdateCommand.js +103 -0
- package/dist/command/RuleUpdateCommand.js.map +1 -0
- package/dist/command/cli.js +8 -0
- package/dist/command/cli.js.map +1 -1
- package/dist/index.d.ts +33 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -1
- package/dist/meta/AWSMetaTable.d.ts +4 -1
- package/dist/meta/AWSMetaTable.js +4 -1
- package/dist/meta/AWSMetaTable.js.map +1 -1
- package/dist/meta/AzureMetaTable.d.ts +3 -1
- package/dist/meta/AzureMetaTable.js +3 -1
- package/dist/meta/AzureMetaTable.js.map +1 -1
- package/dist/meta/GCPMetaTable.d.ts +3 -1
- package/dist/meta/GCPMetaTable.js +3 -1
- package/dist/meta/GCPMetaTable.js.map +1 -1
- package/dist/meta/NamirasoftBillWatchMetaDatabase.js +1 -1
- package/dist/meta/NamirasoftBillWatchMetaDatabase.js.map +1 -1
- package/dist/row/AWSFullRow.d.ts +4 -1
- package/dist/row/AWSInputRow.d.ts +5 -1
- package/dist/row/AWSRow.d.ts +4 -1
- package/dist/row/AzureFullRow.d.ts +3 -1
- package/dist/row/AzureInputRow.d.ts +4 -1
- package/dist/row/AzureRow.d.ts +3 -1
- package/dist/row/GCPFullRow.d.ts +3 -1
- package/dist/row/GCPInputRow.d.ts +4 -1
- package/dist/row/GCPRow.d.ts +3 -1
- package/dist/row/RuleCategoryRow.d.ts +8 -0
- package/dist/row/RuleCategoryRow.js +3 -0
- package/dist/row/RuleCategoryRow.js.map +1 -0
- package/dist/row/RuleFieldRow.d.ts +9 -0
- package/dist/row/RuleFieldRow.js +3 -0
- package/dist/row/RuleFieldRow.js.map +1 -0
- package/dist/row/RuleFullRow.d.ts +16 -0
- package/dist/row/RuleFullRow.js +3 -0
- package/dist/row/RuleFullRow.js.map +1 -0
- package/dist/row/RuleInputRow.d.ts +12 -0
- package/dist/row/RuleInputRow.js +3 -0
- package/dist/row/RuleInputRow.js.map +1 -0
- package/dist/row/RuleRow.d.ts +10 -0
- package/dist/row/RuleRow.js +3 -0
- package/dist/row/RuleRow.js.map +1 -0
- package/dist/row/RuleTagRow.d.ts +9 -0
- package/dist/row/RuleTagRow.js +3 -0
- package/dist/row/RuleTagRow.js.map +1 -0
- package/logo.png +0 -0
- package/package.json +4 -4
- package/src/NamirasoftBillWatchServer.ts +13 -1
- package/src/NamirasoftBillWatchServerRule.ts +71 -0
- package/src/NamirasoftBillWatchServerRuleCategory.ts +63 -0
- package/src/NamirasoftBillWatchServerRuleField.ts +70 -0
- package/src/NamirasoftBillWatchServerRuleTag.ts +70 -0
- package/src/command/AWSCreateCommand.ts +43 -7
- package/src/command/AWSUpdateCommand.ts +43 -7
- package/src/command/AzureCreateCommand.ts +36 -9
- package/src/command/AzureUpdateCommand.ts +36 -9
- package/src/command/GCPCreateCommand.ts +36 -9
- package/src/command/GCPUpdateCommand.ts +36 -9
- package/src/command/RuleCategoryCommand.ts +38 -0
- package/src/command/RuleCategoryCreateCommand.ts +56 -0
- package/src/command/RuleCategoryDeleteCommand.ts +45 -0
- package/src/command/RuleCategoryGetCommand.ts +45 -0
- package/src/command/RuleCategoryListCommand.ts +45 -0
- package/src/command/RuleCommand.ts +40 -0
- package/src/command/RuleCreateCommand.ts +110 -0
- package/src/command/RuleDeleteCommand.ts +45 -0
- package/src/command/RuleFieldCommand.ts +40 -0
- package/src/command/RuleFieldCreateCommand.ts +65 -0
- package/src/command/RuleFieldDeleteCommand.ts +45 -0
- package/src/command/RuleFieldGetCommand.ts +45 -0
- package/src/command/RuleFieldListCommand.ts +45 -0
- package/src/command/RuleFieldUpdateCommand.ts +65 -0
- package/src/command/RuleGetCommand.ts +45 -0
- package/src/command/RuleListCommand.ts +45 -0
- package/src/command/RuleTagCommand.ts +40 -0
- package/src/command/RuleTagCreateCommand.ts +65 -0
- package/src/command/RuleTagDeleteCommand.ts +45 -0
- package/src/command/RuleTagGetCommand.ts +45 -0
- package/src/command/RuleTagListCommand.ts +45 -0
- package/src/command/RuleTagUpdateCommand.ts +65 -0
- package/src/command/RuleUpdateCommand.ts +110 -0
- package/src/command/cli.ts +8 -0
- package/src/index.ts +34 -1
- package/src/meta/AWSMetaTable.ts +8 -2
- package/src/meta/AzureMetaTable.ts +6 -2
- package/src/meta/GCPMetaTable.ts +6 -2
- package/src/meta/NamirasoftBillWatchMetaDatabase.ts +1 -1
- package/src/row/AWSFullRow.ts +4 -1
- package/src/row/AWSInputRow.ts +5 -1
- package/src/row/AWSRow.ts +4 -1
- package/src/row/AzureFullRow.ts +3 -1
- package/src/row/AzureInputRow.ts +4 -1
- package/src/row/AzureRow.ts +3 -1
- package/src/row/GCPFullRow.ts +3 -1
- package/src/row/GCPInputRow.ts +4 -1
- package/src/row/GCPRow.ts +3 -1
- package/src/row/RuleCategoryRow.ts +29 -0
- package/src/row/RuleFieldRow.ts +30 -0
- package/src/row/RuleFullRow.ts +38 -0
- package/src/row/RuleInputRow.ts +34 -0
- package/src/row/RuleRow.ts +31 -0
- package/src/row/RuleTagRow.ts +30 -0
|
@@ -12,6 +12,10 @@ import { NamirasoftBillWatchServerGCPCategory } from "./NamirasoftBillWatchServe
|
|
|
12
12
|
import { NamirasoftBillWatchServerGCPField } from "./NamirasoftBillWatchServerGCPField";
|
|
13
13
|
import { NamirasoftBillWatchServerGCPTag } from "./NamirasoftBillWatchServerGCPTag";
|
|
14
14
|
import { NamirasoftBillWatchServerHealthz } from "./NamirasoftBillWatchServerHealthz";
|
|
15
|
+
import { NamirasoftBillWatchServerRule } from "./NamirasoftBillWatchServerRule";
|
|
16
|
+
import { NamirasoftBillWatchServerRuleCategory } from "./NamirasoftBillWatchServerRuleCategory";
|
|
17
|
+
import { NamirasoftBillWatchServerRuleField } from "./NamirasoftBillWatchServerRuleField";
|
|
18
|
+
import { NamirasoftBillWatchServerRuleTag } from "./NamirasoftBillWatchServerRuleTag";
|
|
15
19
|
import { NamirasoftBillWatchServerValue } from "./NamirasoftBillWatchServerValue";
|
|
16
20
|
import { TokenManager } from "namirasoft-account";
|
|
17
21
|
export declare class NamirasoftBillWatchServer extends NSABaseServer {
|
|
@@ -29,5 +33,9 @@ export declare class NamirasoftBillWatchServer extends NSABaseServer {
|
|
|
29
33
|
g_c_p_field: NamirasoftBillWatchServerGCPField;
|
|
30
34
|
g_c_p_tag: NamirasoftBillWatchServerGCPTag;
|
|
31
35
|
gcp: NamirasoftBillWatchServerGCP;
|
|
36
|
+
rule_category: NamirasoftBillWatchServerRuleCategory;
|
|
37
|
+
rule_field: NamirasoftBillWatchServerRuleField;
|
|
38
|
+
rule_tag: NamirasoftBillWatchServerRuleTag;
|
|
39
|
+
rule: NamirasoftBillWatchServerRule;
|
|
32
40
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void);
|
|
33
41
|
}
|
|
@@ -15,10 +15,14 @@ const NamirasoftBillWatchServerGCPCategory_1 = require("./NamirasoftBillWatchSer
|
|
|
15
15
|
const NamirasoftBillWatchServerGCPField_1 = require("./NamirasoftBillWatchServerGCPField");
|
|
16
16
|
const NamirasoftBillWatchServerGCPTag_1 = require("./NamirasoftBillWatchServerGCPTag");
|
|
17
17
|
const NamirasoftBillWatchServerHealthz_1 = require("./NamirasoftBillWatchServerHealthz");
|
|
18
|
+
const NamirasoftBillWatchServerRule_1 = require("./NamirasoftBillWatchServerRule");
|
|
19
|
+
const NamirasoftBillWatchServerRuleCategory_1 = require("./NamirasoftBillWatchServerRuleCategory");
|
|
20
|
+
const NamirasoftBillWatchServerRuleField_1 = require("./NamirasoftBillWatchServerRuleField");
|
|
21
|
+
const NamirasoftBillWatchServerRuleTag_1 = require("./NamirasoftBillWatchServerRuleTag");
|
|
18
22
|
const NamirasoftBillWatchServerValue_1 = require("./NamirasoftBillWatchServerValue");
|
|
19
23
|
class NamirasoftBillWatchServer extends namirasoft_account_1.NSABaseServer {
|
|
20
24
|
constructor(base_url, manager, onError) {
|
|
21
|
-
super(base_url, `1.4.
|
|
25
|
+
super(base_url, `1.4.4`, manager, onError);
|
|
22
26
|
this.healthz = new NamirasoftBillWatchServerHealthz_1.NamirasoftBillWatchServerHealthz(this);
|
|
23
27
|
this.value = new NamirasoftBillWatchServerValue_1.NamirasoftBillWatchServerValue(this);
|
|
24
28
|
this.a_w_s_category = new NamirasoftBillWatchServerAWSCategory_1.NamirasoftBillWatchServerAWSCategory(this);
|
|
@@ -33,6 +37,10 @@ class NamirasoftBillWatchServer extends namirasoft_account_1.NSABaseServer {
|
|
|
33
37
|
this.g_c_p_field = new NamirasoftBillWatchServerGCPField_1.NamirasoftBillWatchServerGCPField(this);
|
|
34
38
|
this.g_c_p_tag = new NamirasoftBillWatchServerGCPTag_1.NamirasoftBillWatchServerGCPTag(this);
|
|
35
39
|
this.gcp = new NamirasoftBillWatchServerGCP_1.NamirasoftBillWatchServerGCP(this);
|
|
40
|
+
this.rule_category = new NamirasoftBillWatchServerRuleCategory_1.NamirasoftBillWatchServerRuleCategory(this);
|
|
41
|
+
this.rule_field = new NamirasoftBillWatchServerRuleField_1.NamirasoftBillWatchServerRuleField(this);
|
|
42
|
+
this.rule_tag = new NamirasoftBillWatchServerRuleTag_1.NamirasoftBillWatchServerRuleTag(this);
|
|
43
|
+
this.rule = new NamirasoftBillWatchServerRule_1.NamirasoftBillWatchServerRule(this);
|
|
36
44
|
}
|
|
37
45
|
}
|
|
38
46
|
exports.NamirasoftBillWatchServer = NamirasoftBillWatchServer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NamirasoftBillWatchServer.js","sourceRoot":"","sources":["../src/NamirasoftBillWatchServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,iFAA8E;AAC9E,iGAA8F;AAC9F,2FAAwF;AACxF,uFAAoF;AACpF,qFAAkF;AAClF,qGAAkG;AAClG,+FAA4F;AAC5F,2FAAwF;AACxF,iFAA8E;AAC9E,iGAA8F;AAC9F,2FAAwF;AACxF,uFAAoF;AACpF,yFAAsF;AACtF,qFAAkF;AAGlF,MAAa,yBAA0B,SAAQ,kCAAa;
|
|
1
|
+
{"version":3,"file":"NamirasoftBillWatchServer.js","sourceRoot":"","sources":["../src/NamirasoftBillWatchServer.ts"],"names":[],"mappings":";;;AAoBA,2DAAmD;AACnD,iFAA8E;AAC9E,iGAA8F;AAC9F,2FAAwF;AACxF,uFAAoF;AACpF,qFAAkF;AAClF,qGAAkG;AAClG,+FAA4F;AAC5F,2FAAwF;AACxF,iFAA8E;AAC9E,iGAA8F;AAC9F,2FAAwF;AACxF,uFAAoF;AACpF,yFAAsF;AACtF,mFAAgF;AAChF,mGAAgG;AAChG,6FAA0F;AAC1F,yFAAsF;AACtF,qFAAkF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,uEAAkC,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,QAAQ,GAAG,IAAI,mEAAgC,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,IAAI,GAAG,IAAI,6DAA6B,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;CACJ;AA1CD,8DA0CC;AAAA,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FilterItem } from "namirasoft-core";
|
|
2
|
+
import { NamirasoftBillWatchServer } from "./NamirasoftBillWatchServer";
|
|
3
|
+
import { NamirasoftBillWatchServerBase } from "./NamirasoftBillWatchServerBase";
|
|
4
|
+
import { RuleFullRow } from "./row/RuleFullRow";
|
|
5
|
+
import { RuleInputRow } from "./row/RuleInputRow";
|
|
6
|
+
import { RuleRow } from "./row/RuleRow";
|
|
7
|
+
import { SortItem } from "namirasoft-core";
|
|
8
|
+
export declare class NamirasoftBillWatchServerRule extends NamirasoftBillWatchServerBase {
|
|
9
|
+
constructor(server: NamirasoftBillWatchServer);
|
|
10
|
+
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
|
|
11
|
+
rows: RuleRow[];
|
|
12
|
+
count: number;
|
|
13
|
+
}>;
|
|
14
|
+
Get(id: string): Promise<RuleFullRow>;
|
|
15
|
+
Create(body: RuleInputRow): Promise<RuleRow>;
|
|
16
|
+
Update(id: string, body: RuleInputRow): Promise<RuleRow>;
|
|
17
|
+
Delete(id: string): Promise<void>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NamirasoftBillWatchServerRule = void 0;
|
|
13
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
+
const NamirasoftBillWatchServerBase_1 = require("./NamirasoftBillWatchServerBase");
|
|
15
|
+
const namirasoft_core_2 = require("namirasoft-core");
|
|
16
|
+
class NamirasoftBillWatchServerRule extends NamirasoftBillWatchServerBase_1.NamirasoftBillWatchServerBase {
|
|
17
|
+
constructor(server) {
|
|
18
|
+
super(server);
|
|
19
|
+
this.List = this.List.bind(this);
|
|
20
|
+
this.Get = this.Get.bind(this);
|
|
21
|
+
this.Create = this.Create.bind(this);
|
|
22
|
+
this.Update = this.Update.bind(this);
|
|
23
|
+
this.Delete = this.Delete.bind(this);
|
|
24
|
+
}
|
|
25
|
+
List(filters, page, size, sorts) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
|
|
28
|
+
let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
|
|
29
|
+
let path = `/rule/list`;
|
|
30
|
+
let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
31
|
+
return data;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
Get(id) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
let path = `/rule/${id}`;
|
|
37
|
+
let { data } = yield this.server._get(path, {});
|
|
38
|
+
return data;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
Create(body) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
let path = `/rule`;
|
|
44
|
+
let { data } = yield this.server._post(path, {}, body);
|
|
45
|
+
return data;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
Update(id, body) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
let path = `/rule/${id}`;
|
|
51
|
+
let { data } = yield this.server._put(path, {}, body);
|
|
52
|
+
return data;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
Delete(id) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
let path = `/rule/${id}`;
|
|
58
|
+
yield this.server._delete(path, {});
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.NamirasoftBillWatchServerRule = NamirasoftBillWatchServerRule;
|
|
63
|
+
;
|
|
64
|
+
//# sourceMappingURL=NamirasoftBillWatchServerRule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamirasoftBillWatchServerRule.js","sourceRoot":"","sources":["../src/NamirasoftBillWatchServerRule.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAA6C;AAE7C,mFAAgF;AAIhF,qDAA2C;AAE3C,MAAa,6BAA8B,SAAQ,6DAA6B;IAE5E,YAAY,MAAiC;QAEzC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC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AAG,SAAS,EAAE,EAAE,CAAC;YACzB,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9C,CAAC;KAAA;CACJ;AA1CD,sEA0CC;AAAA,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow";
|
|
2
|
+
import { FilterItem } from "namirasoft-core";
|
|
3
|
+
import { NamirasoftBillWatchServer } from "./NamirasoftBillWatchServer";
|
|
4
|
+
import { NamirasoftBillWatchServerBase } from "./NamirasoftBillWatchServerBase";
|
|
5
|
+
import { RuleCategoryRow } from "./row/RuleCategoryRow";
|
|
6
|
+
import { SortItem } from "namirasoft-core";
|
|
7
|
+
export declare class NamirasoftBillWatchServerRuleCategory extends NamirasoftBillWatchServerBase {
|
|
8
|
+
constructor(server: NamirasoftBillWatchServer);
|
|
9
|
+
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
|
|
10
|
+
rows: RuleCategoryRow[];
|
|
11
|
+
count: number;
|
|
12
|
+
}>;
|
|
13
|
+
Get(id: string): Promise<RuleCategoryRow>;
|
|
14
|
+
Create(entity_id: string, body: EntityCategoryInputRow): Promise<RuleCategoryRow>;
|
|
15
|
+
Delete(entity_id: string, id: number): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NamirasoftBillWatchServerRuleCategory = void 0;
|
|
13
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
+
const NamirasoftBillWatchServerBase_1 = require("./NamirasoftBillWatchServerBase");
|
|
15
|
+
const namirasoft_core_2 = require("namirasoft-core");
|
|
16
|
+
class NamirasoftBillWatchServerRuleCategory extends NamirasoftBillWatchServerBase_1.NamirasoftBillWatchServerBase {
|
|
17
|
+
constructor(server) {
|
|
18
|
+
super(server);
|
|
19
|
+
this.List = this.List.bind(this);
|
|
20
|
+
this.Get = this.Get.bind(this);
|
|
21
|
+
this.Create = this.Create.bind(this);
|
|
22
|
+
this.Delete = this.Delete.bind(this);
|
|
23
|
+
}
|
|
24
|
+
List(filters, page, size, sorts) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
|
|
27
|
+
let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
|
|
28
|
+
let path = `rule/category/list`;
|
|
29
|
+
let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
30
|
+
return data;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
Get(id) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
let path = `rule/category/${id}`;
|
|
36
|
+
let { data } = yield this.server._get(path, {});
|
|
37
|
+
return data;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
Create(entity_id, body) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
let path = `rule/category/${entity_id}`;
|
|
43
|
+
let { data } = yield this.server._post(path, {}, body);
|
|
44
|
+
return data;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
Delete(entity_id, id) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
let path = `rule/category/${entity_id}/${id}`;
|
|
50
|
+
yield this.server._delete(path, {});
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.NamirasoftBillWatchServerRuleCategory = NamirasoftBillWatchServerRuleCategory;
|
|
55
|
+
;
|
|
56
|
+
//# sourceMappingURL=NamirasoftBillWatchServerRuleCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamirasoftBillWatchServerRuleCategory.js","sourceRoot":"","sources":["../src/NamirasoftBillWatchServerRuleCategory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;AAE7C,mFAAgF;AAEhF,qDAA2C;AAE3C,MAAa,qCAAsC,SAAQ,6DAA6B;IAEpF,YAAY,MAAiC;QAEzC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,kBAAkB,GAAW,0BAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,IAAI,GAAG,oBAAoB,CAAC;YAChC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAA6C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAClK,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,GAAG,CAAC,EAAU;;YAEhB,IAAI,IAAI,GAAG,iBAAiB,EAAE,EAAE,CAAC;YACjC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAkB,IAAI,EAAE,EAAE,CAAC,CAAC;YACjE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,SAAiB,EAAE,IAA4B;;YAExD,IAAI,IAAI,GAAG,iBAAiB,SAAS,EAAE,CAAC;YACxC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAkB,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACxE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,SAAiB,EAAE,EAAU;;YAEtC,IAAI,IAAI,GAAG,iBAAiB,SAAS,IAAI,EAAE,EAAE,CAAC;YAC9C,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9C,CAAC;KAAA;CACJ;AAnCD,sFAmCC;AAAA,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EntityFieldInputRow } from "./row/EntityFieldInputRow";
|
|
2
|
+
import { FilterItem } from "namirasoft-core";
|
|
3
|
+
import { NamirasoftBillWatchServer } from "./NamirasoftBillWatchServer";
|
|
4
|
+
import { NamirasoftBillWatchServerBase } from "./NamirasoftBillWatchServerBase";
|
|
5
|
+
import { RuleFieldRow } from "./row/RuleFieldRow";
|
|
6
|
+
import { SortItem } from "namirasoft-core";
|
|
7
|
+
export declare class NamirasoftBillWatchServerRuleField extends NamirasoftBillWatchServerBase {
|
|
8
|
+
constructor(server: NamirasoftBillWatchServer);
|
|
9
|
+
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
|
|
10
|
+
rows: RuleFieldRow[];
|
|
11
|
+
count: number;
|
|
12
|
+
}>;
|
|
13
|
+
Get(id: string): Promise<RuleFieldRow>;
|
|
14
|
+
Create(entity_id: string, body: EntityFieldInputRow): Promise<RuleFieldRow>;
|
|
15
|
+
Update(entity_id: string, id: number, body: EntityFieldInputRow): Promise<RuleFieldRow>;
|
|
16
|
+
Delete(entity_id: string, id: number): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NamirasoftBillWatchServerRuleField = void 0;
|
|
13
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
+
const NamirasoftBillWatchServerBase_1 = require("./NamirasoftBillWatchServerBase");
|
|
15
|
+
const namirasoft_core_2 = require("namirasoft-core");
|
|
16
|
+
class NamirasoftBillWatchServerRuleField extends NamirasoftBillWatchServerBase_1.NamirasoftBillWatchServerBase {
|
|
17
|
+
constructor(server) {
|
|
18
|
+
super(server);
|
|
19
|
+
this.List = this.List.bind(this);
|
|
20
|
+
this.Get = this.Get.bind(this);
|
|
21
|
+
this.Create = this.Create.bind(this);
|
|
22
|
+
this.Update = this.Update.bind(this);
|
|
23
|
+
this.Delete = this.Delete.bind(this);
|
|
24
|
+
}
|
|
25
|
+
List(filters, page, size, sorts) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
|
|
28
|
+
let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
|
|
29
|
+
let path = `rule/field/list`;
|
|
30
|
+
let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
31
|
+
return data;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
Get(id) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
let path = `rule/field/${id}`;
|
|
37
|
+
let { data } = yield this.server._get(path, {});
|
|
38
|
+
return data;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
Create(entity_id, body) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
let path = `rule/field/${entity_id}`;
|
|
44
|
+
let { data } = yield this.server._post(path, {}, body);
|
|
45
|
+
return data;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
Update(entity_id, id, body) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
let path = `rule/field/${entity_id}/${id}`;
|
|
51
|
+
let { data } = yield this.server._put(path, {}, body);
|
|
52
|
+
return data;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
Delete(entity_id, id) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
let path = `rule/field/${entity_id}/${id}`;
|
|
58
|
+
yield this.server._delete(path, {});
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.NamirasoftBillWatchServerRuleField = NamirasoftBillWatchServerRuleField;
|
|
63
|
+
;
|
|
64
|
+
//# sourceMappingURL=NamirasoftBillWatchServerRuleField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamirasoftBillWatchServerRuleField.js","sourceRoot":"","sources":["../src/NamirasoftBillWatchServerRuleField.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;AAE7C,mFAAgF;AAEhF,qDAA2C;AAE3C,MAAa,kCAAmC,SAAQ,6DAA6B;IAEjF,YAAY,MAAiC;QAEzC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,kBAAkB,GAAW,0BAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,IAAI,GAAG,iBAAiB,CAAC;YAC7B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAA0C,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAC/J,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,GAAG,CAAC,EAAU;;YAEhB,IAAI,IAAI,GAAG,cAAc,EAAE,EAAE,CAAC;YAC9B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAe,IAAI,EAAE,EAAE,CAAC,CAAC;YAC9D,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,SAAiB,EAAE,IAAyB;;YAErD,IAAI,IAAI,GAAG,cAAc,SAAS,EAAE,CAAC;YACrC,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,SAAiB,EAAE,EAAU,EAAE,IAAyB;;YAEjE,IAAI,IAAI,GAAG,cAAc,SAAS,IAAI,EAAE,EAAE,CAAC;YAC3C,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAe,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;YACpE,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;IACK,MAAM,CAAC,SAAiB,EAAE,EAAU;;YAEtC,IAAI,IAAI,GAAG,cAAc,SAAS,IAAI,EAAE,EAAE,CAAC;YAC3C,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9C,CAAC;KAAA;CACJ;AA1CD,gFA0CC;AAAA,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EntityTagInputRow } from "./row/EntityTagInputRow";
|
|
2
|
+
import { FilterItem } from "namirasoft-core";
|
|
3
|
+
import { NamirasoftBillWatchServer } from "./NamirasoftBillWatchServer";
|
|
4
|
+
import { NamirasoftBillWatchServerBase } from "./NamirasoftBillWatchServerBase";
|
|
5
|
+
import { RuleTagRow } from "./row/RuleTagRow";
|
|
6
|
+
import { SortItem } from "namirasoft-core";
|
|
7
|
+
export declare class NamirasoftBillWatchServerRuleTag extends NamirasoftBillWatchServerBase {
|
|
8
|
+
constructor(server: NamirasoftBillWatchServer);
|
|
9
|
+
List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{
|
|
10
|
+
rows: RuleTagRow[];
|
|
11
|
+
count: number;
|
|
12
|
+
}>;
|
|
13
|
+
Get(id: string): Promise<RuleTagRow>;
|
|
14
|
+
Create(entity_id: string, body: EntityTagInputRow): Promise<RuleTagRow>;
|
|
15
|
+
Update(entity_id: string, id: number, body: EntityTagInputRow): Promise<RuleTagRow>;
|
|
16
|
+
Delete(entity_id: string, id: number): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NamirasoftBillWatchServerRuleTag = void 0;
|
|
13
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
+
const NamirasoftBillWatchServerBase_1 = require("./NamirasoftBillWatchServerBase");
|
|
15
|
+
const namirasoft_core_2 = require("namirasoft-core");
|
|
16
|
+
class NamirasoftBillWatchServerRuleTag extends NamirasoftBillWatchServerBase_1.NamirasoftBillWatchServerBase {
|
|
17
|
+
constructor(server) {
|
|
18
|
+
super(server);
|
|
19
|
+
this.List = this.List.bind(this);
|
|
20
|
+
this.Get = this.Get.bind(this);
|
|
21
|
+
this.Create = this.Create.bind(this);
|
|
22
|
+
this.Update = this.Update.bind(this);
|
|
23
|
+
this.Delete = this.Delete.bind(this);
|
|
24
|
+
}
|
|
25
|
+
List(filters, page, size, sorts) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
let filters_string_value = namirasoft_core_1.FilterItem.stringify(filters);
|
|
28
|
+
let sorts_string_value = namirasoft_core_2.SortItem.stringify(sorts);
|
|
29
|
+
let path = `rule/tag/list`;
|
|
30
|
+
let { data } = yield this.server._get(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
|
|
31
|
+
return data;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
Get(id) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
let path = `rule/tag/${id}`;
|
|
37
|
+
let { data } = yield this.server._get(path, {});
|
|
38
|
+
return data;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
Create(entity_id, body) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
let path = `rule/tag/${entity_id}`;
|
|
44
|
+
let { data } = yield this.server._post(path, {}, body);
|
|
45
|
+
return data;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
Update(entity_id, id, body) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
let path = `rule/tag/${entity_id}/${id}`;
|
|
51
|
+
let { data } = yield this.server._put(path, {}, body);
|
|
52
|
+
return data;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
Delete(entity_id, id) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
let path = `rule/tag/${entity_id}/${id}`;
|
|
58
|
+
yield this.server._delete(path, {});
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.NamirasoftBillWatchServerRuleTag = NamirasoftBillWatchServerRuleTag;
|
|
63
|
+
;
|
|
64
|
+
//# sourceMappingURL=NamirasoftBillWatchServerRuleTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NamirasoftBillWatchServerRuleTag.js","sourceRoot":"","sources":["../src/NamirasoftBillWatchServerRuleTag.ts"],"names":[],"mappings":";;;;;;;;;;;;AAqBA,qDAA6C;AAE7C,mFAAgF;AAEhF,qDAA2C;AAE3C,MAAa,gCAAiC,SAAQ,6DAA6B;IAE/E,YAAY,MAAiC;QAEzC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IACK,IAAI,CAAC,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB;;YAEpG,IAAI,oBAAoB,GAAW,4BAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACjE,IAAI,kBAAkB,GAAW,0BAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,IAAI,IAAI,GAAG,eAAe,CAAC;YAC3B,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAwC,IAAI,EAAE,EAAE,OAAO,EA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27
|
},
|
|
28
|
+
{
|
|
29
|
+
name: "credential_aws_id",
|
|
30
|
+
short: "",
|
|
31
|
+
description: "Provides the value of 'credential_aws_id' in body",
|
|
32
|
+
optional: false,
|
|
33
|
+
args: ["credential_aws_id"],
|
|
34
|
+
defaults: [""]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "topic_id",
|
|
38
|
+
short: "",
|
|
39
|
+
description: "Provides the value of 'topic_id' in body",
|
|
40
|
+
optional: false,
|
|
41
|
+
args: ["topic_id"],
|
|
42
|
+
defaults: [""]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "log_group_id",
|
|
46
|
+
short: "",
|
|
47
|
+
description: "Provides the value of 'log_group_id' in body",
|
|
48
|
+
optional: true,
|
|
49
|
+
args: ["log_group_id"],
|
|
50
|
+
defaults: [""]
|
|
51
|
+
},
|
|
28
52
|
{
|
|
29
53
|
name: "name",
|
|
30
54
|
short: "",
|
|
@@ -34,19 +58,19 @@ class AWSCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
34
58
|
defaults: [""]
|
|
35
59
|
},
|
|
36
60
|
{
|
|
37
|
-
name: "
|
|
61
|
+
name: "active",
|
|
38
62
|
short: "",
|
|
39
|
-
description: "Provides the value of '
|
|
63
|
+
description: "Provides the value of 'active' in body",
|
|
40
64
|
optional: false,
|
|
41
|
-
args: ["
|
|
65
|
+
args: ["active"],
|
|
42
66
|
defaults: [""]
|
|
43
67
|
},
|
|
44
68
|
{
|
|
45
|
-
name: "
|
|
69
|
+
name: "regions",
|
|
46
70
|
short: "",
|
|
47
|
-
description: "Provides the value of '
|
|
71
|
+
description: "Provides the value of 'regions' in body",
|
|
48
72
|
optional: false,
|
|
49
|
-
args: ["
|
|
73
|
+
args: ["regions"],
|
|
50
74
|
defaults: [""]
|
|
51
75
|
},
|
|
52
76
|
{
|
|
@@ -57,6 +81,14 @@ class AWSCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
57
81
|
args: ["description"],
|
|
58
82
|
defaults: [""]
|
|
59
83
|
},
|
|
84
|
+
{
|
|
85
|
+
name: "rule_ids",
|
|
86
|
+
short: "",
|
|
87
|
+
description: "Provides the value of 'rule_ids' in body",
|
|
88
|
+
optional: false,
|
|
89
|
+
args: ["rule_ids"],
|
|
90
|
+
defaults: [""]
|
|
91
|
+
},
|
|
60
92
|
{
|
|
61
93
|
name: "aws_category",
|
|
62
94
|
short: "",
|
|
@@ -95,10 +127,14 @@ class AWSCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
95
127
|
let server = new NamirasoftBillWatchServer_1.NamirasoftBillWatchServer(url, manager, e => this.app.logger.error(e.message));
|
|
96
128
|
let ans = yield server.aws.Create({
|
|
97
129
|
workspace_id: this.option_values.workspace_id,
|
|
98
|
-
name: this.option_values.name,
|
|
99
130
|
credential_aws_id: this.option_values.credential_aws_id,
|
|
100
131
|
topic_id: this.option_values.topic_id,
|
|
132
|
+
log_group_id: this.option_values.log_group_id,
|
|
133
|
+
name: this.option_values.name,
|
|
134
|
+
active: this.option_values.active,
|
|
135
|
+
regions: this.option_values.regions,
|
|
101
136
|
description: this.option_values.description,
|
|
137
|
+
rule_ids: this.option_values.rule_ids,
|
|
102
138
|
aws_category: this.option_values.aws_category,
|
|
103
139
|
aws_field: this.option_values.aws_field,
|
|
104
140
|
aws_tag: this.option_values.aws_tag
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSCreateCommand.js","sourceRoot":"","sources":["../../src/command/AWSCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,4EAAyE;AACzE,2DAAkD;AAElD,MAAa,gBAAiB,SAAQ,sCAAgB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,8CAA8C;g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D,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACrC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;gBAC7B,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM;gBACjC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,OAAO;gBACnC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACrC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,YAAY;gBAC7C,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;gBACvC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,OAAO;aACtC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAjID,4CAiIC;AAAA,CAAC"}
|
|
@@ -25,6 +25,30 @@ class AWSUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
25
25
|
args: ["workspace_id"],
|
|
26
26
|
defaults: [""]
|
|
27
27
|
},
|
|
28
|
+
{
|
|
29
|
+
name: "credential_aws_id",
|
|
30
|
+
short: "",
|
|
31
|
+
description: "Provides the value of 'credential_aws_id' in body",
|
|
32
|
+
optional: false,
|
|
33
|
+
args: ["credential_aws_id"],
|
|
34
|
+
defaults: [""]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "topic_id",
|
|
38
|
+
short: "",
|
|
39
|
+
description: "Provides the value of 'topic_id' in body",
|
|
40
|
+
optional: false,
|
|
41
|
+
args: ["topic_id"],
|
|
42
|
+
defaults: [""]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "log_group_id",
|
|
46
|
+
short: "",
|
|
47
|
+
description: "Provides the value of 'log_group_id' in body",
|
|
48
|
+
optional: true,
|
|
49
|
+
args: ["log_group_id"],
|
|
50
|
+
defaults: [""]
|
|
51
|
+
},
|
|
28
52
|
{
|
|
29
53
|
name: "name",
|
|
30
54
|
short: "",
|
|
@@ -34,19 +58,19 @@ class AWSUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
34
58
|
defaults: [""]
|
|
35
59
|
},
|
|
36
60
|
{
|
|
37
|
-
name: "
|
|
61
|
+
name: "active",
|
|
38
62
|
short: "",
|
|
39
|
-
description: "Provides the value of '
|
|
63
|
+
description: "Provides the value of 'active' in body",
|
|
40
64
|
optional: false,
|
|
41
|
-
args: ["
|
|
65
|
+
args: ["active"],
|
|
42
66
|
defaults: [""]
|
|
43
67
|
},
|
|
44
68
|
{
|
|
45
|
-
name: "
|
|
69
|
+
name: "regions",
|
|
46
70
|
short: "",
|
|
47
|
-
description: "Provides the value of '
|
|
71
|
+
description: "Provides the value of 'regions' in body",
|
|
48
72
|
optional: false,
|
|
49
|
-
args: ["
|
|
73
|
+
args: ["regions"],
|
|
50
74
|
defaults: [""]
|
|
51
75
|
},
|
|
52
76
|
{
|
|
@@ -57,6 +81,14 @@ class AWSUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
57
81
|
args: ["description"],
|
|
58
82
|
defaults: [""]
|
|
59
83
|
},
|
|
84
|
+
{
|
|
85
|
+
name: "rule_ids",
|
|
86
|
+
short: "",
|
|
87
|
+
description: "Provides the value of 'rule_ids' in body",
|
|
88
|
+
optional: false,
|
|
89
|
+
args: ["rule_ids"],
|
|
90
|
+
defaults: [""]
|
|
91
|
+
},
|
|
60
92
|
{
|
|
61
93
|
name: "aws_category",
|
|
62
94
|
short: "",
|
|
@@ -95,10 +127,14 @@ class AWSUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
95
127
|
let server = new NamirasoftBillWatchServer_1.NamirasoftBillWatchServer(url, manager, e => this.app.logger.error(e.message));
|
|
96
128
|
let ans = yield server.aws.Update(this.arg_values[0], {
|
|
97
129
|
workspace_id: this.option_values.workspace_id,
|
|
98
|
-
name: this.option_values.name,
|
|
99
130
|
credential_aws_id: this.option_values.credential_aws_id,
|
|
100
131
|
topic_id: this.option_values.topic_id,
|
|
132
|
+
log_group_id: this.option_values.log_group_id,
|
|
133
|
+
name: this.option_values.name,
|
|
134
|
+
active: this.option_values.active,
|
|
135
|
+
regions: this.option_values.regions,
|
|
101
136
|
description: this.option_values.description,
|
|
137
|
+
rule_ids: this.option_values.rule_ids,
|
|
102
138
|
aws_category: this.option_values.aws_category,
|
|
103
139
|
aws_field: this.option_values.aws_field,
|
|
104
140
|
aws_tag: this.option_values.aws_tag
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSUpdateCommand.js","sourceRoot":"","sources":["../../src/command/AWSUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,4EAAyE;AACzE,2DAAkD;AAElD,MAAa,gBAAiB,SAAQ,sCAAgB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,8CAA8C;gBAC3D,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,cAAc,CAAC;gBACtB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,sCAAsC;gBACnD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,MAAM,CAAC;gBACd,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"AWSUpdateCommand.js","sourceRoot":"","sources":["../../src/command/AWSUpdateCommand.ts"],"names":[],"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