|
@@ -15,12 +15,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
};
|
|
|
})();
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
-exports.GetOrganizationTreeRequest = exports.OrganizationTreeDTO = exports.TeamBaseDTO = exports.UpdateOrganizationRequest = exports.GetOrganizationListRequest = exports.RemoveOrganizationRequest = exports.OrganizationPageRequest = exports.GetOrganizationByKeyRequest = exports.GetOrganizationRequest = exports.OrganizationDTO = exports.CreateOrganizationRequest = void 0;
|
|
|
+exports.GetOrganizationTreeRequest = exports.OrganizationTreeDTO = exports.TeamBaseDTO = exports.UpdateOrganizationRequest = exports.GetOrganizationListRequest = exports.RemoveOrganizationRequest = exports.OrganizationPageRequest = exports.GetOrganizationByKeyRequest = exports.GetOrganizationRequest = exports.OrganizationDTO = exports.CreateOrganizationRequest = exports.CustomTypeEnum = void 0;
|
|
|
var authentication_m_1 = require("./authentication.m");
|
|
|
+var CustomTypeEnum;
|
|
|
+(function (CustomTypeEnum) {
|
|
|
+ CustomTypeEnum[CustomTypeEnum["General"] = 0] = "General";
|
|
|
+ CustomTypeEnum[CustomTypeEnum["CustomFirst"] = 1] = "CustomFirst";
|
|
|
+})(CustomTypeEnum || (exports.CustomTypeEnum = CustomTypeEnum = {}));
|
|
|
var CreateOrganizationRequest = /** @class */ (function (_super) {
|
|
|
__extends(CreateOrganizationRequest, _super);
|
|
|
function CreateOrganizationRequest(_a) {
|
|
|
- var code = _a.code, provinceCode = _a.provinceCode, cityCode = _a.cityCode, districtCode = _a.districtCode, townCode = _a.townCode, residenceCode = _a.residenceCode, organizationName = _a.organizationName, contactNumber = _a.contactNumber, logoUrl = _a.logoUrl, address = _a.address, fatherCode = _a.fatherCode, featureCodes = _a.featureCodes, token = _a.token;
|
|
|
+ var code = _a.code, provinceCode = _a.provinceCode, cityCode = _a.cityCode, districtCode = _a.districtCode, townCode = _a.townCode, residenceCode = _a.residenceCode, organizationName = _a.organizationName, contactNumber = _a.contactNumber, logoUrl = _a.logoUrl, address = _a.address, fatherCode = _a.fatherCode, featureCodes = _a.featureCodes, customType = _a.customType, token = _a.token;
|
|
|
var _this = _super.call(this, {
|
|
|
token: token,
|
|
|
}) || this;
|
|
@@ -36,6 +41,7 @@ var CreateOrganizationRequest = /** @class */ (function (_super) {
|
|
|
_this.address = address;
|
|
|
_this.fatherCode = fatherCode;
|
|
|
_this.featureCodes = featureCodes;
|
|
|
+ _this.customType = customType || CustomTypeEnum.General;
|
|
|
_this.token = token;
|
|
|
return _this;
|
|
|
}
|
|
@@ -52,6 +58,7 @@ var CreateOrganizationRequest = /** @class */ (function (_super) {
|
|
|
address: map['Address'],
|
|
|
fatherCode: map['FatherCode'],
|
|
|
featureCodes: !map['FeatureCodes'] ? [] : Array.from(map['FeatureCodes']),
|
|
|
+ customType: map['CustomType'],
|
|
|
token: map['Token'],
|
|
|
});
|
|
|
};
|
|
@@ -81,6 +88,7 @@ var CreateOrganizationRequest = /** @class */ (function (_super) {
|
|
|
map['FatherCode'] = this.fatherCode;
|
|
|
if (this.featureCodes != null)
|
|
|
map['FeatureCodes'] = this.featureCodes;
|
|
|
+ map['CustomType'] = this.customType;
|
|
|
return map;
|
|
|
};
|
|
|
return CreateOrganizationRequest;
|
|
@@ -89,7 +97,7 @@ exports.CreateOrganizationRequest = CreateOrganizationRequest;
|
|
|
var OrganizationDTO = /** @class */ (function (_super) {
|
|
|
__extends(OrganizationDTO, _super);
|
|
|
function OrganizationDTO(_a) {
|
|
|
- var provinceCode = _a.provinceCode, cityCode = _a.cityCode, districtCode = _a.districtCode, townCode = _a.townCode, residenceCode = _a.residenceCode, townName = _a.townName, residenceName = _a.residenceName, organizationName = _a.organizationName, contactNumber = _a.contactNumber, logoUrl = _a.logoUrl, address = _a.address, directors = _a.directors, fatherCode = _a.fatherCode, fatherName = _a.fatherName, featureCodes = _a.featureCodes, code = _a.code, createTime = _a.createTime, updateTime = _a.updateTime;
|
|
|
+ var provinceCode = _a.provinceCode, cityCode = _a.cityCode, districtCode = _a.districtCode, townCode = _a.townCode, residenceCode = _a.residenceCode, townName = _a.townName, residenceName = _a.residenceName, organizationName = _a.organizationName, contactNumber = _a.contactNumber, logoUrl = _a.logoUrl, address = _a.address, directors = _a.directors, fatherCode = _a.fatherCode, fatherName = _a.fatherName, featureCodes = _a.featureCodes, customType = _a.customType, code = _a.code, createTime = _a.createTime, updateTime = _a.updateTime;
|
|
|
var _this = _super.call(this, {
|
|
|
code: code,
|
|
|
createTime: createTime,
|
|
@@ -110,6 +118,7 @@ var OrganizationDTO = /** @class */ (function (_super) {
|
|
|
_this.fatherCode = fatherCode;
|
|
|
_this.fatherName = fatherName;
|
|
|
_this.featureCodes = featureCodes;
|
|
|
+ _this.customType = customType || CustomTypeEnum.General;
|
|
|
_this.code = code;
|
|
|
_this.createTime = createTime;
|
|
|
_this.updateTime = updateTime;
|
|
@@ -131,6 +140,7 @@ var OrganizationDTO = /** @class */ (function (_super) {
|
|
|
fatherCode: map['FatherCode'],
|
|
|
fatherName: map['FatherName'],
|
|
|
featureCodes: !map['FeatureCodes'] ? [] : Array.from(map['FeatureCodes']),
|
|
|
+ customType: map['CustomType'],
|
|
|
code: map['Code'],
|
|
|
createTime: map['CreateTime'] !== null ? new Date(map['CreateTime']) : null,
|
|
|
updateTime: map['UpdateTime'] !== null ? new Date(map['UpdateTime']) : null,
|
|
@@ -168,6 +178,7 @@ var OrganizationDTO = /** @class */ (function (_super) {
|
|
|
map['FatherName'] = this.fatherName;
|
|
|
if (this.featureCodes != null)
|
|
|
map['FeatureCodes'] = this.featureCodes;
|
|
|
+ map['CustomType'] = this.customType;
|
|
|
return map;
|
|
|
};
|
|
|
return OrganizationDTO;
|
|
@@ -316,7 +327,7 @@ exports.GetOrganizationListRequest = GetOrganizationListRequest;
|
|
|
var UpdateOrganizationRequest = /** @class */ (function (_super) {
|
|
|
__extends(UpdateOrganizationRequest, _super);
|
|
|
function UpdateOrganizationRequest(_a) {
|
|
|
- var code = _a.code, provinceCode = _a.provinceCode, cityCode = _a.cityCode, districtCode = _a.districtCode, townCode = _a.townCode, residenceCode = _a.residenceCode, organizationName = _a.organizationName, contactNumber = _a.contactNumber, logoUrl = _a.logoUrl, address = _a.address, fatherCode = _a.fatherCode, featureCodes = _a.featureCodes, token = _a.token;
|
|
|
+ var code = _a.code, provinceCode = _a.provinceCode, cityCode = _a.cityCode, districtCode = _a.districtCode, townCode = _a.townCode, residenceCode = _a.residenceCode, organizationName = _a.organizationName, contactNumber = _a.contactNumber, logoUrl = _a.logoUrl, address = _a.address, fatherCode = _a.fatherCode, featureCodes = _a.featureCodes, customType = _a.customType, token = _a.token;
|
|
|
var _this = _super.call(this, {
|
|
|
token: token,
|
|
|
}) || this;
|
|
@@ -332,6 +343,7 @@ var UpdateOrganizationRequest = /** @class */ (function (_super) {
|
|
|
_this.address = address;
|
|
|
_this.fatherCode = fatherCode;
|
|
|
_this.featureCodes = featureCodes;
|
|
|
+ _this.customType = customType || CustomTypeEnum.General;
|
|
|
_this.token = token;
|
|
|
return _this;
|
|
|
}
|
|
@@ -348,6 +360,7 @@ var UpdateOrganizationRequest = /** @class */ (function (_super) {
|
|
|
address: map['Address'],
|
|
|
fatherCode: map['FatherCode'],
|
|
|
featureCodes: !map['FeatureCodes'] ? [] : Array.from(map['FeatureCodes']),
|
|
|
+ customType: map['CustomType'],
|
|
|
token: map['Token'],
|
|
|
});
|
|
|
};
|
|
@@ -377,6 +390,7 @@ var UpdateOrganizationRequest = /** @class */ (function (_super) {
|
|
|
map['FatherCode'] = this.fatherCode;
|
|
|
if (this.featureCodes != null)
|
|
|
map['FeatureCodes'] = this.featureCodes;
|
|
|
+ map['CustomType'] = this.customType;
|
|
|
return map;
|
|
|
};
|
|
|
return UpdateOrganizationRequest;
|