gs2 1.3.166 → 1.3.167
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/formation/model/Form.d.ts +2 -2
- package/formation/model/Form.js +11 -11
- package/formation/model/Form.js.map +1 -1
- package/formation/model/Form.ts +11 -11
- package/formation/model/FormModel.d.ts +2 -1
- package/formation/model/FormModel.js +22 -2
- package/formation/model/FormModel.js.map +1 -1
- package/formation/model/FormModel.ts +24 -1
- package/formation/model/Mold.d.ts +2 -2
- package/formation/model/Mold.js +10 -10
- package/formation/model/Mold.js.map +1 -1
- package/formation/model/Mold.ts +10 -10
- package/formation/model/MoldModel.d.ts +2 -2
- package/formation/model/MoldModel.js +9 -9
- package/formation/model/MoldModel.js.map +1 -1
- package/formation/model/MoldModel.ts +9 -9
- package/formation/model/MoldModelMaster.d.ts +2 -2
- package/formation/model/MoldModelMaster.js +9 -9
- package/formation/model/MoldModelMaster.js.map +1 -1
- package/formation/model/MoldModelMaster.ts +9 -9
- package/formation/model/PropertyForm.d.ts +2 -2
- package/formation/model/PropertyForm.js +11 -11
- package/formation/model/PropertyForm.js.map +1 -1
- package/formation/model/PropertyForm.ts +11 -11
- package/formation/model/PropertyFormModel.d.ts +32 -0
- package/formation/model/PropertyFormModel.js +165 -0
- package/formation/model/PropertyFormModel.js.map +1 -0
- package/formation/model/PropertyFormModel.ts +179 -0
- package/formation/model/PropertyFormModelMaster.d.ts +48 -0
- package/formation/model/PropertyFormModelMaster.js +221 -0
- package/formation/model/PropertyFormModelMaster.js.map +1 -0
- package/formation/model/PropertyFormModelMaster.ts +235 -0
- package/formation/model/index.d.ts +3 -1
- package/formation/model/index.js +5 -1
- package/formation/model/index.js.map +1 -1
- package/formation/model/index.ts +4 -0
- package/formation/request/AcquireActionsToFormPropertiesRequest.d.ts +4 -4
- package/formation/request/AcquireActionsToFormPropertiesRequest.js +9 -9
- package/formation/request/AcquireActionsToFormPropertiesRequest.js.map +1 -1
- package/formation/request/AcquireActionsToFormPropertiesRequest.ts +9 -9
- package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.d.ts +4 -4
- package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.js +9 -9
- package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.js.map +1 -1
- package/formation/request/AcquireActionsToPropertyFormPropertiesRequest.ts +9 -9
- package/formation/request/AddMoldCapacityByUserIdRequest.d.ts +4 -4
- package/formation/request/AddMoldCapacityByUserIdRequest.js +9 -9
- package/formation/request/AddMoldCapacityByUserIdRequest.js.map +1 -1
- package/formation/request/AddMoldCapacityByUserIdRequest.ts +9 -9
- package/formation/request/CreatePropertyFormModelMasterRequest.d.ts +38 -0
- package/formation/request/CreatePropertyFormModelMasterRequest.js +133 -0
- package/formation/request/CreatePropertyFormModelMasterRequest.js.map +1 -0
- package/formation/request/CreatePropertyFormModelMasterRequest.ts +140 -0
- package/formation/request/DeleteFormByUserIdRequest.d.ts +4 -4
- package/formation/request/DeleteFormByUserIdRequest.js +9 -9
- package/formation/request/DeleteFormByUserIdRequest.js.map +1 -1
- package/formation/request/DeleteFormByUserIdRequest.ts +9 -9
- package/formation/request/DeleteFormRequest.d.ts +4 -4
- package/formation/request/DeleteFormRequest.js +9 -9
- package/formation/request/DeleteFormRequest.js.map +1 -1
- package/formation/request/DeleteFormRequest.ts +9 -9
- package/formation/request/DeleteMoldByUserIdRequest.d.ts +4 -4
- package/formation/request/DeleteMoldByUserIdRequest.js +9 -9
- package/formation/request/DeleteMoldByUserIdRequest.js.map +1 -1
- package/formation/request/DeleteMoldByUserIdRequest.ts +9 -9
- package/formation/request/DeleteMoldModelMasterRequest.d.ts +4 -4
- package/formation/request/DeleteMoldModelMasterRequest.js +9 -9
- package/formation/request/DeleteMoldModelMasterRequest.js.map +1 -1
- package/formation/request/DeleteMoldModelMasterRequest.ts +9 -9
- package/formation/request/DeleteMoldRequest.d.ts +4 -4
- package/formation/request/DeleteMoldRequest.js +9 -9
- package/formation/request/DeleteMoldRequest.js.map +1 -1
- package/formation/request/DeleteMoldRequest.ts +9 -9
- package/formation/request/DeletePropertyFormByUserIdRequest.d.ts +4 -4
- package/formation/request/DeletePropertyFormByUserIdRequest.js +9 -9
- package/formation/request/DeletePropertyFormByUserIdRequest.js.map +1 -1
- package/formation/request/DeletePropertyFormByUserIdRequest.ts +9 -9
- package/formation/request/DeletePropertyFormModelMasterRequest.d.ts +25 -0
- package/formation/request/DeletePropertyFormModelMasterRequest.js +83 -0
- package/formation/request/DeletePropertyFormModelMasterRequest.js.map +1 -0
- package/formation/request/DeletePropertyFormModelMasterRequest.ts +90 -0
- package/formation/request/DeletePropertyFormRequest.d.ts +4 -4
- package/formation/request/DeletePropertyFormRequest.js +9 -9
- package/formation/request/DeletePropertyFormRequest.js.map +1 -1
- package/formation/request/DeletePropertyFormRequest.ts +9 -9
- package/formation/request/DescribeFormsByUserIdRequest.d.ts +4 -4
- package/formation/request/DescribeFormsByUserIdRequest.js +9 -9
- package/formation/request/DescribeFormsByUserIdRequest.js.map +1 -1
- package/formation/request/DescribeFormsByUserIdRequest.ts +9 -9
- package/formation/request/DescribeFormsRequest.d.ts +4 -4
- package/formation/request/DescribeFormsRequest.js +9 -9
- package/formation/request/DescribeFormsRequest.js.map +1 -1
- package/formation/request/DescribeFormsRequest.ts +9 -9
- package/formation/request/DescribePropertyFormModelMastersRequest.d.ts +29 -0
- package/formation/request/DescribePropertyFormModelMastersRequest.js +97 -0
- package/formation/request/DescribePropertyFormModelMastersRequest.js.map +1 -0
- package/formation/request/DescribePropertyFormModelMastersRequest.ts +104 -0
- package/formation/request/DescribePropertyFormModelsRequest.d.ts +21 -0
- package/formation/request/DescribePropertyFormModelsRequest.js +69 -0
- package/formation/request/DescribePropertyFormModelsRequest.js.map +1 -0
- package/formation/request/DescribePropertyFormModelsRequest.ts +76 -0
- package/formation/request/DescribePropertyFormsByUserIdRequest.d.ts +4 -4
- package/formation/request/DescribePropertyFormsByUserIdRequest.js +9 -9
- package/formation/request/DescribePropertyFormsByUserIdRequest.js.map +1 -1
- package/formation/request/DescribePropertyFormsByUserIdRequest.ts +9 -9
- package/formation/request/DescribePropertyFormsRequest.d.ts +4 -4
- package/formation/request/DescribePropertyFormsRequest.js +9 -9
- package/formation/request/DescribePropertyFormsRequest.js.map +1 -1
- package/formation/request/DescribePropertyFormsRequest.ts +9 -9
- package/formation/request/GetFormByUserIdRequest.d.ts +4 -4
- package/formation/request/GetFormByUserIdRequest.js +9 -9
- package/formation/request/GetFormByUserIdRequest.js.map +1 -1
- package/formation/request/GetFormByUserIdRequest.ts +9 -9
- package/formation/request/GetFormModelRequest.d.ts +4 -0
- package/formation/request/GetFormModelRequest.js +14 -0
- package/formation/request/GetFormModelRequest.js.map +1 -1
- package/formation/request/GetFormModelRequest.ts +14 -0
- package/formation/request/GetFormRequest.d.ts +4 -4
- package/formation/request/GetFormRequest.js +9 -9
- package/formation/request/GetFormRequest.js.map +1 -1
- package/formation/request/GetFormRequest.ts +9 -9
- package/formation/request/GetFormWithSignatureByUserIdRequest.d.ts +4 -4
- package/formation/request/GetFormWithSignatureByUserIdRequest.js +9 -9
- package/formation/request/GetFormWithSignatureByUserIdRequest.js.map +1 -1
- package/formation/request/GetFormWithSignatureByUserIdRequest.ts +9 -9
- package/formation/request/GetFormWithSignatureRequest.d.ts +4 -4
- package/formation/request/GetFormWithSignatureRequest.js +9 -9
- package/formation/request/GetFormWithSignatureRequest.js.map +1 -1
- package/formation/request/GetFormWithSignatureRequest.ts +9 -9
- package/formation/request/GetMoldByUserIdRequest.d.ts +4 -4
- package/formation/request/GetMoldByUserIdRequest.js +9 -9
- package/formation/request/GetMoldByUserIdRequest.js.map +1 -1
- package/formation/request/GetMoldByUserIdRequest.ts +9 -9
- package/formation/request/GetMoldModelMasterRequest.d.ts +4 -4
- package/formation/request/GetMoldModelMasterRequest.js +9 -9
- package/formation/request/GetMoldModelMasterRequest.js.map +1 -1
- package/formation/request/GetMoldModelMasterRequest.ts +9 -9
- package/formation/request/GetMoldModelRequest.d.ts +4 -4
- package/formation/request/GetMoldModelRequest.js +9 -9
- package/formation/request/GetMoldModelRequest.js.map +1 -1
- package/formation/request/GetMoldModelRequest.ts +9 -9
- package/formation/request/GetMoldRequest.d.ts +4 -4
- package/formation/request/GetMoldRequest.js +9 -9
- package/formation/request/GetMoldRequest.js.map +1 -1
- package/formation/request/GetMoldRequest.ts +9 -9
- package/formation/request/GetPropertyFormByUserIdRequest.d.ts +4 -4
- package/formation/request/GetPropertyFormByUserIdRequest.js +9 -9
- package/formation/request/GetPropertyFormByUserIdRequest.js.map +1 -1
- package/formation/request/GetPropertyFormByUserIdRequest.ts +9 -9
- package/formation/request/GetPropertyFormModelMasterRequest.d.ts +25 -0
- package/formation/request/GetPropertyFormModelMasterRequest.js +83 -0
- package/formation/request/GetPropertyFormModelMasterRequest.js.map +1 -0
- package/formation/request/GetPropertyFormModelMasterRequest.ts +90 -0
- package/formation/request/GetPropertyFormModelRequest.d.ts +25 -0
- package/formation/request/GetPropertyFormModelRequest.js +83 -0
- package/formation/request/GetPropertyFormModelRequest.js.map +1 -0
- package/formation/request/GetPropertyFormModelRequest.ts +90 -0
- package/formation/request/GetPropertyFormRequest.d.ts +4 -4
- package/formation/request/GetPropertyFormRequest.js +9 -9
- package/formation/request/GetPropertyFormRequest.js.map +1 -1
- package/formation/request/GetPropertyFormRequest.ts +9 -9
- package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.d.ts +4 -4
- package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.js +9 -9
- package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.js.map +1 -1
- package/formation/request/GetPropertyFormWithSignatureByUserIdRequest.ts +9 -9
- package/formation/request/GetPropertyFormWithSignatureRequest.d.ts +4 -4
- package/formation/request/GetPropertyFormWithSignatureRequest.js +9 -9
- package/formation/request/GetPropertyFormWithSignatureRequest.js.map +1 -1
- package/formation/request/GetPropertyFormWithSignatureRequest.ts +9 -9
- package/formation/request/SetFormByUserIdRequest.d.ts +4 -4
- package/formation/request/SetFormByUserIdRequest.js +9 -9
- package/formation/request/SetFormByUserIdRequest.js.map +1 -1
- package/formation/request/SetFormByUserIdRequest.ts +9 -9
- package/formation/request/SetFormWithSignatureRequest.d.ts +4 -4
- package/formation/request/SetFormWithSignatureRequest.js +9 -9
- package/formation/request/SetFormWithSignatureRequest.js.map +1 -1
- package/formation/request/SetFormWithSignatureRequest.ts +9 -9
- package/formation/request/SetMoldCapacityByUserIdRequest.d.ts +4 -4
- package/formation/request/SetMoldCapacityByUserIdRequest.js +9 -9
- package/formation/request/SetMoldCapacityByUserIdRequest.js.map +1 -1
- package/formation/request/SetMoldCapacityByUserIdRequest.ts +9 -9
- package/formation/request/SetPropertyFormByUserIdRequest.d.ts +4 -4
- package/formation/request/SetPropertyFormByUserIdRequest.js +9 -9
- package/formation/request/SetPropertyFormByUserIdRequest.js.map +1 -1
- package/formation/request/SetPropertyFormByUserIdRequest.ts +9 -9
- package/formation/request/SetPropertyFormWithSignatureRequest.d.ts +4 -4
- package/formation/request/SetPropertyFormWithSignatureRequest.js +9 -9
- package/formation/request/SetPropertyFormWithSignatureRequest.js.map +1 -1
- package/formation/request/SetPropertyFormWithSignatureRequest.ts +9 -9
- package/formation/request/SubMoldCapacityByUserIdRequest.d.ts +4 -4
- package/formation/request/SubMoldCapacityByUserIdRequest.js +9 -9
- package/formation/request/SubMoldCapacityByUserIdRequest.js.map +1 -1
- package/formation/request/SubMoldCapacityByUserIdRequest.ts +9 -9
- package/formation/request/UpdateMoldModelMasterRequest.d.ts +4 -4
- package/formation/request/UpdateMoldModelMasterRequest.js +9 -9
- package/formation/request/UpdateMoldModelMasterRequest.js.map +1 -1
- package/formation/request/UpdateMoldModelMasterRequest.ts +9 -9
- package/formation/request/UpdatePropertyFormModelMasterRequest.d.ts +38 -0
- package/formation/request/UpdatePropertyFormModelMasterRequest.js +133 -0
- package/formation/request/UpdatePropertyFormModelMasterRequest.js.map +1 -0
- package/formation/request/UpdatePropertyFormModelMasterRequest.ts +140 -0
- package/formation/request/index.d.ts +8 -2
- package/formation/request/index.js +16 -4
- package/formation/request/index.js.map +1 -1
- package/formation/request/index.ts +14 -2
- package/formation/rest.d.ts +7 -1
- package/formation/rest.js +246 -92
- package/formation/rest.js.map +1 -1
- package/formation/rest.ts +271 -93
- package/formation/result/CreatePropertyFormModelMasterResult.d.ts +14 -0
- package/formation/result/CreatePropertyFormModelMasterResult.js +48 -0
- package/formation/result/CreatePropertyFormModelMasterResult.js.map +1 -0
- package/formation/result/CreatePropertyFormModelMasterResult.ts +48 -0
- package/formation/result/DeletePropertyFormByUserIdResult.d.ts +4 -4
- package/formation/result/DeletePropertyFormByUserIdResult.js +9 -9
- package/formation/result/DeletePropertyFormByUserIdResult.js.map +1 -1
- package/formation/result/DeletePropertyFormByUserIdResult.ts +9 -9
- package/formation/result/DeletePropertyFormModelMasterResult.d.ts +14 -0
- package/formation/result/DeletePropertyFormModelMasterResult.js +48 -0
- package/formation/result/DeletePropertyFormModelMasterResult.js.map +1 -0
- package/formation/result/DeletePropertyFormModelMasterResult.ts +48 -0
- package/formation/result/DeletePropertyFormResult.d.ts +4 -4
- package/formation/result/DeletePropertyFormResult.js +9 -9
- package/formation/result/DeletePropertyFormResult.js.map +1 -1
- package/formation/result/DeletePropertyFormResult.ts +9 -9
- package/formation/result/DescribePropertyFormModelMastersResult.d.ts +18 -0
- package/formation/result/DescribePropertyFormModelMastersResult.js +67 -0
- package/formation/result/DescribePropertyFormModelMastersResult.js.map +1 -0
- package/formation/result/DescribePropertyFormModelMastersResult.ts +73 -0
- package/formation/result/DescribePropertyFormModelsResult.d.ts +14 -0
- package/formation/result/DescribePropertyFormModelsResult.js +53 -0
- package/formation/result/DescribePropertyFormModelsResult.js.map +1 -0
- package/formation/result/DescribePropertyFormModelsResult.ts +56 -0
- package/formation/result/GetPropertyFormByUserIdResult.d.ts +4 -4
- package/formation/result/GetPropertyFormByUserIdResult.js +9 -9
- package/formation/result/GetPropertyFormByUserIdResult.js.map +1 -1
- package/formation/result/GetPropertyFormByUserIdResult.ts +9 -9
- package/formation/result/GetPropertyFormModelMasterResult.d.ts +14 -0
- package/formation/result/GetPropertyFormModelMasterResult.js +48 -0
- package/formation/result/GetPropertyFormModelMasterResult.js.map +1 -0
- package/formation/result/GetPropertyFormModelMasterResult.ts +48 -0
- package/formation/result/GetPropertyFormModelResult.d.ts +14 -0
- package/formation/result/GetPropertyFormModelResult.js +48 -0
- package/formation/result/GetPropertyFormModelResult.js.map +1 -0
- package/formation/result/GetPropertyFormModelResult.ts +48 -0
- package/formation/result/GetPropertyFormResult.d.ts +4 -4
- package/formation/result/GetPropertyFormResult.js +9 -9
- package/formation/result/GetPropertyFormResult.js.map +1 -1
- package/formation/result/GetPropertyFormResult.ts +9 -9
- package/formation/result/GetPropertyFormWithSignatureByUserIdResult.d.ts +4 -4
- package/formation/result/GetPropertyFormWithSignatureByUserIdResult.js +9 -9
- package/formation/result/GetPropertyFormWithSignatureByUserIdResult.js.map +1 -1
- package/formation/result/GetPropertyFormWithSignatureByUserIdResult.ts +9 -9
- package/formation/result/GetPropertyFormWithSignatureResult.d.ts +4 -4
- package/formation/result/GetPropertyFormWithSignatureResult.js +9 -9
- package/formation/result/GetPropertyFormWithSignatureResult.js.map +1 -1
- package/formation/result/GetPropertyFormWithSignatureResult.ts +9 -9
- package/formation/result/SetPropertyFormByUserIdResult.d.ts +4 -4
- package/formation/result/SetPropertyFormByUserIdResult.js +9 -9
- package/formation/result/SetPropertyFormByUserIdResult.js.map +1 -1
- package/formation/result/SetPropertyFormByUserIdResult.ts +9 -9
- package/formation/result/SetPropertyFormWithSignatureResult.d.ts +4 -4
- package/formation/result/SetPropertyFormWithSignatureResult.js +9 -9
- package/formation/result/SetPropertyFormWithSignatureResult.js.map +1 -1
- package/formation/result/SetPropertyFormWithSignatureResult.ts +9 -9
- package/formation/result/UpdatePropertyFormModelMasterResult.d.ts +14 -0
- package/formation/result/UpdatePropertyFormModelMasterResult.js +48 -0
- package/formation/result/UpdatePropertyFormModelMasterResult.js.map +1 -0
- package/formation/result/UpdatePropertyFormModelMasterResult.ts +48 -0
- package/formation/result/index.d.ts +8 -2
- package/formation/result/index.js +16 -4
- package/formation/result/index.js.map +1 -1
- package/formation/result/index.ts +14 -2
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import SlotModel from './SlotModel';
|
|
3
|
+
export default class PropertyFormModel implements IModel {
|
|
4
|
+
private propertyFormModelId;
|
|
5
|
+
private name;
|
|
6
|
+
private metadata;
|
|
7
|
+
private slots;
|
|
8
|
+
static getRegion(grn: string): string | null;
|
|
9
|
+
static getOwnerId(grn: string): string | null;
|
|
10
|
+
static getNamespaceName(grn: string): string | null;
|
|
11
|
+
static getPropertyFormModelName(grn: string): string | null;
|
|
12
|
+
static isValid(grn: string): boolean;
|
|
13
|
+
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, propertyFormModelName: string | null): string | null;
|
|
14
|
+
getPropertyFormModelId(): string | null;
|
|
15
|
+
setPropertyFormModelId(propertyFormModelId: string | null): this;
|
|
16
|
+
withPropertyFormModelId(propertyFormModelId: string | null): this;
|
|
17
|
+
getName(): string | null;
|
|
18
|
+
setName(name: string | null): this;
|
|
19
|
+
withName(name: string | null): this;
|
|
20
|
+
getMetadata(): string | null;
|
|
21
|
+
setMetadata(metadata: string | null): this;
|
|
22
|
+
withMetadata(metadata: string | null): this;
|
|
23
|
+
getSlots(): SlotModel[] | null;
|
|
24
|
+
setSlots(slots: SlotModel[] | null): this;
|
|
25
|
+
withSlots(slots: SlotModel[] | null): this;
|
|
26
|
+
static fromDict(data: {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}): PropertyFormModel | null;
|
|
29
|
+
toDict(): {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var SlotModel_1 = tslib_1.__importDefault(require("./SlotModel"));
|
|
20
|
+
var grnFormat = "grn:gs2:{region}:{ownerId}:formation:{namespaceName}:model:propertyForm:{propertyFormModelName}";
|
|
21
|
+
var PropertyFormModel = /** @class */ (function () {
|
|
22
|
+
function PropertyFormModel() {
|
|
23
|
+
this.propertyFormModelId = null;
|
|
24
|
+
this.name = null;
|
|
25
|
+
this.metadata = null;
|
|
26
|
+
this.slots = null;
|
|
27
|
+
}
|
|
28
|
+
PropertyFormModel.getRegion = function (grn) {
|
|
29
|
+
var match = grn.match(grnFormat
|
|
30
|
+
.replace('{region}', '(.*)')
|
|
31
|
+
.replace('{ownerId}', '.*')
|
|
32
|
+
.replace('{namespaceName}', '.*')
|
|
33
|
+
.replace('{propertyFormModelName}', '.*'));
|
|
34
|
+
if (match) {
|
|
35
|
+
return match[1];
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
};
|
|
39
|
+
PropertyFormModel.getOwnerId = function (grn) {
|
|
40
|
+
var match = grn.match(grnFormat
|
|
41
|
+
.replace('{region}', '.*')
|
|
42
|
+
.replace('{ownerId}', '(.*)')
|
|
43
|
+
.replace('{namespaceName}', '.*')
|
|
44
|
+
.replace('{propertyFormModelName}', '.*'));
|
|
45
|
+
if (match) {
|
|
46
|
+
return match[1];
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
};
|
|
50
|
+
PropertyFormModel.getNamespaceName = function (grn) {
|
|
51
|
+
var match = grn.match(grnFormat
|
|
52
|
+
.replace('{region}', '.*')
|
|
53
|
+
.replace('{ownerId}', '.*')
|
|
54
|
+
.replace('{namespaceName}', '(.*)')
|
|
55
|
+
.replace('{propertyFormModelName}', '.*'));
|
|
56
|
+
if (match) {
|
|
57
|
+
return match[1];
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
};
|
|
61
|
+
PropertyFormModel.getPropertyFormModelName = function (grn) {
|
|
62
|
+
var match = grn.match(grnFormat
|
|
63
|
+
.replace('{region}', '.*')
|
|
64
|
+
.replace('{ownerId}', '.*')
|
|
65
|
+
.replace('{namespaceName}', '.*')
|
|
66
|
+
.replace('{propertyFormModelName}', '(.*)'));
|
|
67
|
+
if (match) {
|
|
68
|
+
return match[1];
|
|
69
|
+
}
|
|
70
|
+
return null;
|
|
71
|
+
};
|
|
72
|
+
PropertyFormModel.isValid = function (grn) {
|
|
73
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
if (this.getPropertyFormModelName(grn) == null || this.getPropertyFormModelName(grn) === '') {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
return true;
|
|
86
|
+
};
|
|
87
|
+
PropertyFormModel.createGrn = function (region, ownerId, namespaceName, propertyFormModelName) {
|
|
88
|
+
return grnFormat
|
|
89
|
+
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
90
|
+
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
91
|
+
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
92
|
+
.replace('{propertyFormModelName}', propertyFormModelName !== null && propertyFormModelName !== void 0 ? propertyFormModelName : '');
|
|
93
|
+
};
|
|
94
|
+
PropertyFormModel.prototype.getPropertyFormModelId = function () {
|
|
95
|
+
return this.propertyFormModelId;
|
|
96
|
+
};
|
|
97
|
+
PropertyFormModel.prototype.setPropertyFormModelId = function (propertyFormModelId) {
|
|
98
|
+
this.propertyFormModelId = propertyFormModelId;
|
|
99
|
+
return this;
|
|
100
|
+
};
|
|
101
|
+
PropertyFormModel.prototype.withPropertyFormModelId = function (propertyFormModelId) {
|
|
102
|
+
this.propertyFormModelId = propertyFormModelId;
|
|
103
|
+
return this;
|
|
104
|
+
};
|
|
105
|
+
PropertyFormModel.prototype.getName = function () {
|
|
106
|
+
return this.name;
|
|
107
|
+
};
|
|
108
|
+
PropertyFormModel.prototype.setName = function (name) {
|
|
109
|
+
this.name = name;
|
|
110
|
+
return this;
|
|
111
|
+
};
|
|
112
|
+
PropertyFormModel.prototype.withName = function (name) {
|
|
113
|
+
this.name = name;
|
|
114
|
+
return this;
|
|
115
|
+
};
|
|
116
|
+
PropertyFormModel.prototype.getMetadata = function () {
|
|
117
|
+
return this.metadata;
|
|
118
|
+
};
|
|
119
|
+
PropertyFormModel.prototype.setMetadata = function (metadata) {
|
|
120
|
+
this.metadata = metadata;
|
|
121
|
+
return this;
|
|
122
|
+
};
|
|
123
|
+
PropertyFormModel.prototype.withMetadata = function (metadata) {
|
|
124
|
+
this.metadata = metadata;
|
|
125
|
+
return this;
|
|
126
|
+
};
|
|
127
|
+
PropertyFormModel.prototype.getSlots = function () {
|
|
128
|
+
return this.slots;
|
|
129
|
+
};
|
|
130
|
+
PropertyFormModel.prototype.setSlots = function (slots) {
|
|
131
|
+
this.slots = slots;
|
|
132
|
+
return this;
|
|
133
|
+
};
|
|
134
|
+
PropertyFormModel.prototype.withSlots = function (slots) {
|
|
135
|
+
this.slots = slots;
|
|
136
|
+
return this;
|
|
137
|
+
};
|
|
138
|
+
PropertyFormModel.fromDict = function (data) {
|
|
139
|
+
if (data == undefined || data == null) {
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
return new PropertyFormModel()
|
|
143
|
+
.withPropertyFormModelId(data["propertyFormModelId"])
|
|
144
|
+
.withName(data["name"])
|
|
145
|
+
.withMetadata(data["metadata"])
|
|
146
|
+
.withSlots(data.slots ?
|
|
147
|
+
data.slots.map(function (item) {
|
|
148
|
+
return SlotModel_1.default.fromDict(item);
|
|
149
|
+
}) : []);
|
|
150
|
+
};
|
|
151
|
+
PropertyFormModel.prototype.toDict = function () {
|
|
152
|
+
return {
|
|
153
|
+
"propertyFormModelId": this.getPropertyFormModelId(),
|
|
154
|
+
"name": this.getName(),
|
|
155
|
+
"metadata": this.getMetadata(),
|
|
156
|
+
"slots": this.getSlots() ?
|
|
157
|
+
this.getSlots().map(function (item) {
|
|
158
|
+
return item.toDict();
|
|
159
|
+
}) : [],
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
return PropertyFormModel;
|
|
163
|
+
}());
|
|
164
|
+
exports.default = PropertyFormModel;
|
|
165
|
+
//# sourceMappingURL=PropertyFormModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyFormModel.js","sourceRoot":"","sources":["PropertyFormModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,kEAAoC;AACpC,IAAM,SAAS,GAAW,iGAAiG,CAAC;AAE5H;IAAA;QACY,wBAAmB,GAAgB,IAAI,CAAC;QACxC,SAAI,GAAgB,IAAI,CAAC;QACzB,aAAQ,GAAgB,IAAI,CAAC;QAC7B,UAAK,GAAqB,IAAI,CAAC;IA0J3C,CAAC;IAxJiB,2BAAS,GAAvB,UAAwB,GAAW;QAC/B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AhB,UAAiB,KAAuB;QACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,0BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,iBAAiB,EAAE;aACzB,uBAAuB,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;aACpD,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,mBAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACpC,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,kCAAM,GAAb;QACI,OAAO;YACH,qBAAqB,EAAE,IAAI,CAAC,sBAAsB,EAAE;YACpD,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAe;oBACjC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,wBAAC;AAAD,CAAC,AA9JD,IA8JC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
import SlotModel from './SlotModel';
|
|
19
|
+
const grnFormat: string = "grn:gs2:{region}:{ownerId}:formation:{namespaceName}:model:propertyForm:{propertyFormModelName}";
|
|
20
|
+
|
|
21
|
+
export default class PropertyFormModel implements IModel {
|
|
22
|
+
private propertyFormModelId: string|null = null;
|
|
23
|
+
private name: string|null = null;
|
|
24
|
+
private metadata: string|null = null;
|
|
25
|
+
private slots: SlotModel[]|null = null;
|
|
26
|
+
|
|
27
|
+
public static getRegion(grn: string): string|null {
|
|
28
|
+
const match = grn.match(grnFormat
|
|
29
|
+
.replace('{region}', '(.*)')
|
|
30
|
+
.replace('{ownerId}', '.*')
|
|
31
|
+
.replace('{namespaceName}', '.*')
|
|
32
|
+
.replace('{propertyFormModelName}', '.*')
|
|
33
|
+
);
|
|
34
|
+
if (match) {
|
|
35
|
+
return match[1];
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public static getOwnerId(grn: string): string|null {
|
|
41
|
+
const match = grn.match(grnFormat
|
|
42
|
+
.replace('{region}', '.*')
|
|
43
|
+
.replace('{ownerId}', '(.*)')
|
|
44
|
+
.replace('{namespaceName}', '.*')
|
|
45
|
+
.replace('{propertyFormModelName}', '.*')
|
|
46
|
+
);
|
|
47
|
+
if (match) {
|
|
48
|
+
return match[1];
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public static getNamespaceName(grn: string): string|null {
|
|
54
|
+
const match = grn.match(grnFormat
|
|
55
|
+
.replace('{region}', '.*')
|
|
56
|
+
.replace('{ownerId}', '.*')
|
|
57
|
+
.replace('{namespaceName}', '(.*)')
|
|
58
|
+
.replace('{propertyFormModelName}', '.*')
|
|
59
|
+
);
|
|
60
|
+
if (match) {
|
|
61
|
+
return match[1];
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public static getPropertyFormModelName(grn: string): string|null {
|
|
67
|
+
const match = grn.match(grnFormat
|
|
68
|
+
.replace('{region}', '.*')
|
|
69
|
+
.replace('{ownerId}', '.*')
|
|
70
|
+
.replace('{namespaceName}', '.*')
|
|
71
|
+
.replace('{propertyFormModelName}', '(.*)')
|
|
72
|
+
);
|
|
73
|
+
if (match) {
|
|
74
|
+
return match[1];
|
|
75
|
+
}
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public static isValid(grn: string): boolean {
|
|
80
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
if (this.getPropertyFormModelName(grn) == null || this.getPropertyFormModelName(grn) === '') {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
public static createGrn(
|
|
96
|
+
region: string|null,
|
|
97
|
+
ownerId: string|null,
|
|
98
|
+
namespaceName: string|null,
|
|
99
|
+
propertyFormModelName: string|null,
|
|
100
|
+
): string|null {
|
|
101
|
+
return grnFormat
|
|
102
|
+
.replace('{region}', region ?? '')
|
|
103
|
+
.replace('{ownerId}', ownerId ?? '')
|
|
104
|
+
.replace('{namespaceName}', namespaceName ?? '')
|
|
105
|
+
.replace('{propertyFormModelName}', propertyFormModelName ?? '');
|
|
106
|
+
}
|
|
107
|
+
public getPropertyFormModelId(): string|null {
|
|
108
|
+
return this.propertyFormModelId;
|
|
109
|
+
}
|
|
110
|
+
public setPropertyFormModelId(propertyFormModelId: string|null) {
|
|
111
|
+
this.propertyFormModelId = propertyFormModelId;
|
|
112
|
+
return this;
|
|
113
|
+
}
|
|
114
|
+
public withPropertyFormModelId(propertyFormModelId: string|null): this {
|
|
115
|
+
this.propertyFormModelId = propertyFormModelId;
|
|
116
|
+
return this;
|
|
117
|
+
}
|
|
118
|
+
public getName(): string|null {
|
|
119
|
+
return this.name;
|
|
120
|
+
}
|
|
121
|
+
public setName(name: string|null) {
|
|
122
|
+
this.name = name;
|
|
123
|
+
return this;
|
|
124
|
+
}
|
|
125
|
+
public withName(name: string|null): this {
|
|
126
|
+
this.name = name;
|
|
127
|
+
return this;
|
|
128
|
+
}
|
|
129
|
+
public getMetadata(): string|null {
|
|
130
|
+
return this.metadata;
|
|
131
|
+
}
|
|
132
|
+
public setMetadata(metadata: string|null) {
|
|
133
|
+
this.metadata = metadata;
|
|
134
|
+
return this;
|
|
135
|
+
}
|
|
136
|
+
public withMetadata(metadata: string|null): this {
|
|
137
|
+
this.metadata = metadata;
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
140
|
+
public getSlots(): SlotModel[]|null {
|
|
141
|
+
return this.slots;
|
|
142
|
+
}
|
|
143
|
+
public setSlots(slots: SlotModel[]|null) {
|
|
144
|
+
this.slots = slots;
|
|
145
|
+
return this;
|
|
146
|
+
}
|
|
147
|
+
public withSlots(slots: SlotModel[]|null): this {
|
|
148
|
+
this.slots = slots;
|
|
149
|
+
return this;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
public static fromDict(data: {[key: string]: any}): PropertyFormModel|null {
|
|
153
|
+
if (data == undefined || data == null) {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
return new PropertyFormModel()
|
|
157
|
+
.withPropertyFormModelId(data["propertyFormModelId"])
|
|
158
|
+
.withName(data["name"])
|
|
159
|
+
.withMetadata(data["metadata"])
|
|
160
|
+
.withSlots(data.slots ?
|
|
161
|
+
data.slots.map((item: {[key: string]: any}) => {
|
|
162
|
+
return SlotModel.fromDict(item);
|
|
163
|
+
}
|
|
164
|
+
) : []);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
public toDict(): {[key: string]: any} {
|
|
168
|
+
return {
|
|
169
|
+
"propertyFormModelId": this.getPropertyFormModelId(),
|
|
170
|
+
"name": this.getName(),
|
|
171
|
+
"metadata": this.getMetadata(),
|
|
172
|
+
"slots": this.getSlots() ?
|
|
173
|
+
this.getSlots()!.map((item: SlotModel) => {
|
|
174
|
+
return item.toDict();
|
|
175
|
+
}
|
|
176
|
+
) : [],
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import SlotModel from './SlotModel';
|
|
3
|
+
export default class PropertyFormModelMaster implements IModel {
|
|
4
|
+
private propertyFormModelId;
|
|
5
|
+
private name;
|
|
6
|
+
private description;
|
|
7
|
+
private metadata;
|
|
8
|
+
private slots;
|
|
9
|
+
private createdAt;
|
|
10
|
+
private updatedAt;
|
|
11
|
+
private revision;
|
|
12
|
+
static getRegion(grn: string): string | null;
|
|
13
|
+
static getOwnerId(grn: string): string | null;
|
|
14
|
+
static getNamespaceName(grn: string): string | null;
|
|
15
|
+
static getPropertyFormModelName(grn: string): string | null;
|
|
16
|
+
static isValid(grn: string): boolean;
|
|
17
|
+
static createGrn(region: string | null, ownerId: string | null, namespaceName: string | null, propertyFormModelName: string | null): string | null;
|
|
18
|
+
getPropertyFormModelId(): string | null;
|
|
19
|
+
setPropertyFormModelId(propertyFormModelId: string | null): this;
|
|
20
|
+
withPropertyFormModelId(propertyFormModelId: string | null): this;
|
|
21
|
+
getName(): string | null;
|
|
22
|
+
setName(name: string | null): this;
|
|
23
|
+
withName(name: string | null): this;
|
|
24
|
+
getDescription(): string | null;
|
|
25
|
+
setDescription(description: string | null): this;
|
|
26
|
+
withDescription(description: string | null): this;
|
|
27
|
+
getMetadata(): string | null;
|
|
28
|
+
setMetadata(metadata: string | null): this;
|
|
29
|
+
withMetadata(metadata: string | null): this;
|
|
30
|
+
getSlots(): SlotModel[] | null;
|
|
31
|
+
setSlots(slots: SlotModel[] | null): this;
|
|
32
|
+
withSlots(slots: SlotModel[] | null): this;
|
|
33
|
+
getCreatedAt(): number | null;
|
|
34
|
+
setCreatedAt(createdAt: number | null): this;
|
|
35
|
+
withCreatedAt(createdAt: number | null): this;
|
|
36
|
+
getUpdatedAt(): number | null;
|
|
37
|
+
setUpdatedAt(updatedAt: number | null): this;
|
|
38
|
+
withUpdatedAt(updatedAt: number | null): this;
|
|
39
|
+
getRevision(): number | null;
|
|
40
|
+
setRevision(revision: number | null): this;
|
|
41
|
+
withRevision(revision: number | null): this;
|
|
42
|
+
static fromDict(data: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}): PropertyFormModelMaster | null;
|
|
45
|
+
toDict(): {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var SlotModel_1 = tslib_1.__importDefault(require("./SlotModel"));
|
|
20
|
+
var grnFormat = "grn:gs2:{region}:{ownerId}:formation:{namespaceName}:model:propertyForm:{propertyFormModelName}";
|
|
21
|
+
var PropertyFormModelMaster = /** @class */ (function () {
|
|
22
|
+
function PropertyFormModelMaster() {
|
|
23
|
+
this.propertyFormModelId = null;
|
|
24
|
+
this.name = null;
|
|
25
|
+
this.description = null;
|
|
26
|
+
this.metadata = null;
|
|
27
|
+
this.slots = null;
|
|
28
|
+
this.createdAt = null;
|
|
29
|
+
this.updatedAt = null;
|
|
30
|
+
this.revision = null;
|
|
31
|
+
}
|
|
32
|
+
PropertyFormModelMaster.getRegion = function (grn) {
|
|
33
|
+
var match = grn.match(grnFormat
|
|
34
|
+
.replace('{region}', '(.*)')
|
|
35
|
+
.replace('{ownerId}', '.*')
|
|
36
|
+
.replace('{namespaceName}', '.*')
|
|
37
|
+
.replace('{propertyFormModelName}', '.*'));
|
|
38
|
+
if (match) {
|
|
39
|
+
return match[1];
|
|
40
|
+
}
|
|
41
|
+
return null;
|
|
42
|
+
};
|
|
43
|
+
PropertyFormModelMaster.getOwnerId = function (grn) {
|
|
44
|
+
var match = grn.match(grnFormat
|
|
45
|
+
.replace('{region}', '.*')
|
|
46
|
+
.replace('{ownerId}', '(.*)')
|
|
47
|
+
.replace('{namespaceName}', '.*')
|
|
48
|
+
.replace('{propertyFormModelName}', '.*'));
|
|
49
|
+
if (match) {
|
|
50
|
+
return match[1];
|
|
51
|
+
}
|
|
52
|
+
return null;
|
|
53
|
+
};
|
|
54
|
+
PropertyFormModelMaster.getNamespaceName = function (grn) {
|
|
55
|
+
var match = grn.match(grnFormat
|
|
56
|
+
.replace('{region}', '.*')
|
|
57
|
+
.replace('{ownerId}', '.*')
|
|
58
|
+
.replace('{namespaceName}', '(.*)')
|
|
59
|
+
.replace('{propertyFormModelName}', '.*'));
|
|
60
|
+
if (match) {
|
|
61
|
+
return match[1];
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
};
|
|
65
|
+
PropertyFormModelMaster.getPropertyFormModelName = function (grn) {
|
|
66
|
+
var match = grn.match(grnFormat
|
|
67
|
+
.replace('{region}', '.*')
|
|
68
|
+
.replace('{ownerId}', '.*')
|
|
69
|
+
.replace('{namespaceName}', '.*')
|
|
70
|
+
.replace('{propertyFormModelName}', '(.*)'));
|
|
71
|
+
if (match) {
|
|
72
|
+
return match[1];
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
};
|
|
76
|
+
PropertyFormModelMaster.isValid = function (grn) {
|
|
77
|
+
if (this.getRegion(grn) == null || this.getRegion(grn) === '') {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
if (this.getOwnerId(grn) == null || this.getOwnerId(grn) === '') {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (this.getNamespaceName(grn) == null || this.getNamespaceName(grn) === '') {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
if (this.getPropertyFormModelName(grn) == null || this.getPropertyFormModelName(grn) === '') {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
return true;
|
|
90
|
+
};
|
|
91
|
+
PropertyFormModelMaster.createGrn = function (region, ownerId, namespaceName, propertyFormModelName) {
|
|
92
|
+
return grnFormat
|
|
93
|
+
.replace('{region}', region !== null && region !== void 0 ? region : '')
|
|
94
|
+
.replace('{ownerId}', ownerId !== null && ownerId !== void 0 ? ownerId : '')
|
|
95
|
+
.replace('{namespaceName}', namespaceName !== null && namespaceName !== void 0 ? namespaceName : '')
|
|
96
|
+
.replace('{propertyFormModelName}', propertyFormModelName !== null && propertyFormModelName !== void 0 ? propertyFormModelName : '');
|
|
97
|
+
};
|
|
98
|
+
PropertyFormModelMaster.prototype.getPropertyFormModelId = function () {
|
|
99
|
+
return this.propertyFormModelId;
|
|
100
|
+
};
|
|
101
|
+
PropertyFormModelMaster.prototype.setPropertyFormModelId = function (propertyFormModelId) {
|
|
102
|
+
this.propertyFormModelId = propertyFormModelId;
|
|
103
|
+
return this;
|
|
104
|
+
};
|
|
105
|
+
PropertyFormModelMaster.prototype.withPropertyFormModelId = function (propertyFormModelId) {
|
|
106
|
+
this.propertyFormModelId = propertyFormModelId;
|
|
107
|
+
return this;
|
|
108
|
+
};
|
|
109
|
+
PropertyFormModelMaster.prototype.getName = function () {
|
|
110
|
+
return this.name;
|
|
111
|
+
};
|
|
112
|
+
PropertyFormModelMaster.prototype.setName = function (name) {
|
|
113
|
+
this.name = name;
|
|
114
|
+
return this;
|
|
115
|
+
};
|
|
116
|
+
PropertyFormModelMaster.prototype.withName = function (name) {
|
|
117
|
+
this.name = name;
|
|
118
|
+
return this;
|
|
119
|
+
};
|
|
120
|
+
PropertyFormModelMaster.prototype.getDescription = function () {
|
|
121
|
+
return this.description;
|
|
122
|
+
};
|
|
123
|
+
PropertyFormModelMaster.prototype.setDescription = function (description) {
|
|
124
|
+
this.description = description;
|
|
125
|
+
return this;
|
|
126
|
+
};
|
|
127
|
+
PropertyFormModelMaster.prototype.withDescription = function (description) {
|
|
128
|
+
this.description = description;
|
|
129
|
+
return this;
|
|
130
|
+
};
|
|
131
|
+
PropertyFormModelMaster.prototype.getMetadata = function () {
|
|
132
|
+
return this.metadata;
|
|
133
|
+
};
|
|
134
|
+
PropertyFormModelMaster.prototype.setMetadata = function (metadata) {
|
|
135
|
+
this.metadata = metadata;
|
|
136
|
+
return this;
|
|
137
|
+
};
|
|
138
|
+
PropertyFormModelMaster.prototype.withMetadata = function (metadata) {
|
|
139
|
+
this.metadata = metadata;
|
|
140
|
+
return this;
|
|
141
|
+
};
|
|
142
|
+
PropertyFormModelMaster.prototype.getSlots = function () {
|
|
143
|
+
return this.slots;
|
|
144
|
+
};
|
|
145
|
+
PropertyFormModelMaster.prototype.setSlots = function (slots) {
|
|
146
|
+
this.slots = slots;
|
|
147
|
+
return this;
|
|
148
|
+
};
|
|
149
|
+
PropertyFormModelMaster.prototype.withSlots = function (slots) {
|
|
150
|
+
this.slots = slots;
|
|
151
|
+
return this;
|
|
152
|
+
};
|
|
153
|
+
PropertyFormModelMaster.prototype.getCreatedAt = function () {
|
|
154
|
+
return this.createdAt;
|
|
155
|
+
};
|
|
156
|
+
PropertyFormModelMaster.prototype.setCreatedAt = function (createdAt) {
|
|
157
|
+
this.createdAt = createdAt;
|
|
158
|
+
return this;
|
|
159
|
+
};
|
|
160
|
+
PropertyFormModelMaster.prototype.withCreatedAt = function (createdAt) {
|
|
161
|
+
this.createdAt = createdAt;
|
|
162
|
+
return this;
|
|
163
|
+
};
|
|
164
|
+
PropertyFormModelMaster.prototype.getUpdatedAt = function () {
|
|
165
|
+
return this.updatedAt;
|
|
166
|
+
};
|
|
167
|
+
PropertyFormModelMaster.prototype.setUpdatedAt = function (updatedAt) {
|
|
168
|
+
this.updatedAt = updatedAt;
|
|
169
|
+
return this;
|
|
170
|
+
};
|
|
171
|
+
PropertyFormModelMaster.prototype.withUpdatedAt = function (updatedAt) {
|
|
172
|
+
this.updatedAt = updatedAt;
|
|
173
|
+
return this;
|
|
174
|
+
};
|
|
175
|
+
PropertyFormModelMaster.prototype.getRevision = function () {
|
|
176
|
+
return this.revision;
|
|
177
|
+
};
|
|
178
|
+
PropertyFormModelMaster.prototype.setRevision = function (revision) {
|
|
179
|
+
this.revision = revision;
|
|
180
|
+
return this;
|
|
181
|
+
};
|
|
182
|
+
PropertyFormModelMaster.prototype.withRevision = function (revision) {
|
|
183
|
+
this.revision = revision;
|
|
184
|
+
return this;
|
|
185
|
+
};
|
|
186
|
+
PropertyFormModelMaster.fromDict = function (data) {
|
|
187
|
+
if (data == undefined || data == null) {
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
return new PropertyFormModelMaster()
|
|
191
|
+
.withPropertyFormModelId(data["propertyFormModelId"])
|
|
192
|
+
.withName(data["name"])
|
|
193
|
+
.withDescription(data["description"])
|
|
194
|
+
.withMetadata(data["metadata"])
|
|
195
|
+
.withSlots(data.slots ?
|
|
196
|
+
data.slots.map(function (item) {
|
|
197
|
+
return SlotModel_1.default.fromDict(item);
|
|
198
|
+
}) : [])
|
|
199
|
+
.withCreatedAt(data["createdAt"])
|
|
200
|
+
.withUpdatedAt(data["updatedAt"])
|
|
201
|
+
.withRevision(data["revision"]);
|
|
202
|
+
};
|
|
203
|
+
PropertyFormModelMaster.prototype.toDict = function () {
|
|
204
|
+
return {
|
|
205
|
+
"propertyFormModelId": this.getPropertyFormModelId(),
|
|
206
|
+
"name": this.getName(),
|
|
207
|
+
"description": this.getDescription(),
|
|
208
|
+
"metadata": this.getMetadata(),
|
|
209
|
+
"slots": this.getSlots() ?
|
|
210
|
+
this.getSlots().map(function (item) {
|
|
211
|
+
return item.toDict();
|
|
212
|
+
}) : [],
|
|
213
|
+
"createdAt": this.getCreatedAt(),
|
|
214
|
+
"updatedAt": this.getUpdatedAt(),
|
|
215
|
+
"revision": this.getRevision(),
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
return PropertyFormModelMaster;
|
|
219
|
+
}());
|
|
220
|
+
exports.default = PropertyFormModelMaster;
|
|
221
|
+
//# sourceMappingURL=PropertyFormModelMaster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyFormModelMaster.js","sourceRoot":"","sources":["PropertyFormModelMaster.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,kEAAoC;AACpC,IAAM,SAAS,GAAW,iGAAiG,CAAC;AAE5H;IAAA;QACY,wBAAmB,GAAgB,IAAI,CAAC;QACxC,SAAI,GAAgB,IAAI,CAAC;QACzB,gBAAW,GAAgB,IAAI,CAAC;QAChC,aAAQ,GAAgB,IAAI,CAAC;QAC7B,U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