licensemanager-lib-common-ts 0.0.0-stage → 1.0.2
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/LICENSE +21 -0
- package/README.md +0 -3
- package/dist/cjs/api/routes.js +19 -0
- package/dist/cjs/api/routes.js.map +1 -0
- package/dist/cjs/apiClient/license_providers.js +15 -0
- package/dist/cjs/apiClient/license_providers.js.map +1 -0
- package/dist/cjs/apiClient/license_resources.js +15 -0
- package/dist/cjs/apiClient/license_resources.js.map +1 -0
- package/dist/cjs/apiClient/licenses_def.js +15 -0
- package/dist/cjs/apiClient/licenses_def.js.map +1 -0
- package/dist/cjs/apiClient/users_subscriptions.js +15 -0
- package/dist/cjs/apiClient/users_subscriptions.js.map +1 -0
- package/dist/cjs/index.js +39 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/models/authorizations.js +9 -0
- package/dist/cjs/models/authorizations.js.map +1 -0
- package/dist/cjs/models/dto.js +3 -0
- package/dist/cjs/models/dto.js.map +1 -0
- package/dist/cjs/models/factories_def.js +81 -0
- package/dist/cjs/models/factories_def.js.map +1 -0
- package/dist/cjs/models/factories_def_scope.js +19 -0
- package/dist/cjs/models/factories_def_scope.js.map +1 -0
- package/dist/cjs/models/factories_user.js +187 -0
- package/dist/cjs/models/factories_user.js.map +1 -0
- package/dist/cjs/models/hubSettings.js +13 -0
- package/dist/cjs/models/hubSettings.js.map +1 -0
- package/dist/cjs/models/index.js +59 -0
- package/dist/cjs/models/index.js.map +1 -0
- package/dist/cjs/models/outbox.js +8 -0
- package/dist/cjs/models/outbox.js.map +1 -0
- package/dist/cjs/utils/licenseDef.js +47 -0
- package/dist/cjs/utils/licenseDef.js.map +1 -0
- package/dist/cjs/utils/licenseProvider.js +41 -0
- package/dist/cjs/utils/licenseProvider.js.map +1 -0
- package/dist/cjs/utils/userSubscription.js +33 -0
- package/dist/cjs/utils/userSubscription.js.map +1 -0
- package/dist/esm/api/routes.js +16 -0
- package/dist/esm/api/routes.js.map +1 -0
- package/dist/esm/apiClient/license_providers.js +11 -0
- package/dist/esm/apiClient/license_providers.js.map +1 -0
- package/dist/esm/apiClient/license_resources.js +11 -0
- package/dist/esm/apiClient/license_resources.js.map +1 -0
- package/dist/esm/apiClient/licenses_def.js +11 -0
- package/dist/esm/apiClient/licenses_def.js.map +1 -0
- package/dist/esm/apiClient/users_subscriptions.js +11 -0
- package/dist/esm/apiClient/users_subscriptions.js.map +1 -0
- package/dist/esm/index.js +17 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/models/authorizations.js +6 -0
- package/dist/esm/models/authorizations.js.map +1 -0
- package/dist/esm/models/dto.js +2 -0
- package/dist/esm/models/dto.js.map +1 -0
- package/dist/esm/models/factories_def.js +77 -0
- package/dist/esm/models/factories_def.js.map +1 -0
- package/dist/esm/models/factories_def_scope.js +16 -0
- package/dist/esm/models/factories_def_scope.js.map +1 -0
- package/dist/esm/models/factories_user.js +182 -0
- package/dist/esm/models/factories_user.js.map +1 -0
- package/dist/esm/models/hubSettings.js +10 -0
- package/dist/esm/models/hubSettings.js.map +1 -0
- package/dist/esm/models/index.js +56 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/outbox.js +5 -0
- package/dist/esm/models/outbox.js.map +1 -0
- package/dist/esm/utils/licenseDef.js +43 -0
- package/dist/esm/utils/licenseDef.js.map +1 -0
- package/dist/esm/utils/licenseProvider.js +37 -0
- package/dist/esm/utils/licenseProvider.js.map +1 -0
- package/dist/esm/utils/userSubscription.js +29 -0
- package/dist/esm/utils/userSubscription.js.map +1 -0
- package/dist/types/api/routes.d.ts +12 -0
- package/dist/types/apiClient/license_providers.d.ts +9 -0
- package/dist/types/apiClient/license_resources.d.ts +9 -0
- package/dist/types/apiClient/licenses_def.d.ts +9 -0
- package/dist/types/apiClient/users_subscriptions.d.ts +9 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/models/authorizations.d.ts +9 -0
- package/dist/types/models/dto.d.ts +34 -0
- package/dist/types/models/factories_def.d.ts +7 -0
- package/dist/types/models/factories_def_scope.d.ts +6 -0
- package/dist/types/models/factories_user.d.ts +14 -0
- package/dist/types/models/hubSettings.d.ts +14 -0
- package/dist/types/models/index.d.ts +175 -0
- package/dist/types/models/outbox.d.ts +11 -0
- package/dist/types/utils/licenseDef.d.ts +9 -0
- package/dist/types/utils/licenseProvider.d.ts +9 -0
- package/dist/types/utils/userSubscription.d.ts +9 -0
- package/package.json +56 -6
- package/src/api/routes.ts +15 -0
- package/src/apiClient/license_providers.ts +17 -0
- package/src/apiClient/license_resources.ts +17 -0
- package/src/apiClient/licenses_def.ts +17 -0
- package/src/apiClient/users_subscriptions.ts +17 -0
- package/src/index.ts +162 -0
- package/src/models/authorizations.ts +7 -0
- package/src/models/dto.ts +39 -0
- package/src/models/factories_def.ts +82 -0
- package/src/models/factories_def_scope.ts +21 -0
- package/src/models/factories_user.ts +240 -0
- package/src/models/hubSettings.ts +25 -0
- package/src/models/index.ts +259 -0
- package/src/models/outbox.ts +15 -0
- package/src/utils/licenseDef.ts +59 -0
- package/src/utils/licenseProvider.ts +53 -0
- package/src/utils/userSubscription.ts +46 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 joabssilveira
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiRoutesNames = void 0;
|
|
4
|
+
exports.ApiRoutesNames = {
|
|
5
|
+
example_unsecureRoute: './example-unsecure',
|
|
6
|
+
example_unsecureRouteMethod: './example-unsecure-method',
|
|
7
|
+
//
|
|
8
|
+
licenseProviders: '/license-providers',
|
|
9
|
+
licenseResources: '/license-resources',
|
|
10
|
+
licensesDef: '/licenses-def',
|
|
11
|
+
usersSubscriptions: '/users-subscriptions',
|
|
12
|
+
//
|
|
13
|
+
usersSubscriptionsInstances: '/users-subscriptions/:id/instance',
|
|
14
|
+
usersSubscriptionsFindLastByOwnerAndResources: '/users-subscriptions-find-last-by-owner-and-resources', // rpc
|
|
15
|
+
usersSubscriptionsFindLastByInstanceAndResources: '/users-subscriptions-find-last-by-instance-and-resources', // rpc
|
|
16
|
+
//
|
|
17
|
+
licenseOwners: '/license-owners',
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/api/routes.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,qBAAqB,EAAE,oBAAoB;IAC3C,2BAA2B,EAAE,2BAA2B;IACxD,GAAG;IACH,gBAAgB,EAAE,oBAAoB;IACtC,gBAAgB,EAAE,oBAAoB;IACtC,WAAW,EAAE,eAAe;IAC5B,kBAAkB,EAAE,sBAAsB;IAC1C,GAAG;IACH,2BAA2B,EAAE,mCAAmC;IAChE,6CAA6C,EAAE,uDAAuD,EAAE,MAAM;IAC9G,gDAAgD,EAAE,0DAA0D,EAAE,MAAM;IACpH,GAAG;IACH,aAAa,EAAE,iBAAiB;CACjC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LicenseProvidersApiClient = void 0;
|
|
4
|
+
const fwork_jsts_common_1 = require("fwork-jsts-common");
|
|
5
|
+
const routes_1 = require("../api/routes");
|
|
6
|
+
class LicenseProvidersApiClient extends fwork_jsts_common_1.BaseApiClient {
|
|
7
|
+
constructor(args) {
|
|
8
|
+
super({
|
|
9
|
+
apiUrl: `${args.baseApiUrl}${routes_1.ApiRoutesNames.licenseProviders}`,
|
|
10
|
+
axios: args.axios,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.LicenseProvidersApiClient = LicenseProvidersApiClient;
|
|
15
|
+
//# sourceMappingURL=license_providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"license_providers.js","sourceRoot":"","sources":["../../../src/apiClient/license_providers.ts"],"names":[],"mappings":";;;AACA,yDAAwD;AACxD,0CAA8C;AAG9C,MAAa,yBAA0B,SAAQ,iCACe;IAC5D,YAAY,IAGX;QACC,KAAK,CAAC;YACJ,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,GAAG,uBAAc,CAAC,gBAAgB,EAAE;YAC9D,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAA;IACJ,CAAC;CACF;AAXD,8DAWC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LicenseResourcesApiClient = void 0;
|
|
4
|
+
const fwork_jsts_common_1 = require("fwork-jsts-common");
|
|
5
|
+
const routes_1 = require("../api/routes");
|
|
6
|
+
class LicenseResourcesApiClient extends fwork_jsts_common_1.BaseApiClient {
|
|
7
|
+
constructor(args) {
|
|
8
|
+
super({
|
|
9
|
+
apiUrl: `${args.baseApiUrl}${routes_1.ApiRoutesNames.licenseResources}`,
|
|
10
|
+
axios: args.axios,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.LicenseResourcesApiClient = LicenseResourcesApiClient;
|
|
15
|
+
//# sourceMappingURL=license_resources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"license_resources.js","sourceRoot":"","sources":["../../../src/apiClient/license_resources.ts"],"names":[],"mappings":";;;AACA,yDAAwD;AACxD,0CAA8C;AAG9C,MAAa,yBAA0B,SAAQ,iCACe;IAC5D,YAAY,IAGX;QACC,KAAK,CAAC;YACJ,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,GAAG,uBAAc,CAAC,gBAAgB,EAAE;YAC9D,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAA;IACJ,CAAC;CACF;AAXD,8DAWC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LicensesDefApiClient = void 0;
|
|
4
|
+
const fwork_jsts_common_1 = require("fwork-jsts-common");
|
|
5
|
+
const routes_1 = require("../api/routes");
|
|
6
|
+
class LicensesDefApiClient extends fwork_jsts_common_1.BaseApiClient {
|
|
7
|
+
constructor(args) {
|
|
8
|
+
super({
|
|
9
|
+
apiUrl: `${args.baseApiUrl}${routes_1.ApiRoutesNames.licensesDef}`,
|
|
10
|
+
axios: args.axios,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.LicensesDefApiClient = LicensesDefApiClient;
|
|
15
|
+
//# sourceMappingURL=licenses_def.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"licenses_def.js","sourceRoot":"","sources":["../../../src/apiClient/licenses_def.ts"],"names":[],"mappings":";;;AACA,yDAAwD;AACxD,0CAA8C;AAG9C,MAAa,oBAAqB,SAAQ,iCACK;IAC7C,YAAY,IAGX;QACC,KAAK,CAAC;YACJ,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,GAAG,uBAAc,CAAC,WAAW,EAAE;YACzD,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAA;IACJ,CAAC;CACF;AAXD,oDAWC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UsersSubscriptionsApiClient = void 0;
|
|
4
|
+
const fwork_jsts_common_1 = require("fwork-jsts-common");
|
|
5
|
+
const routes_1 = require("../api/routes");
|
|
6
|
+
class UsersSubscriptionsApiClient extends fwork_jsts_common_1.BaseApiClient {
|
|
7
|
+
constructor(args) {
|
|
8
|
+
super({
|
|
9
|
+
apiUrl: `${args.baseApiUrl}${routes_1.ApiRoutesNames.usersSubscriptions}`,
|
|
10
|
+
axios: args.axios,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.UsersSubscriptionsApiClient = UsersSubscriptionsApiClient;
|
|
15
|
+
//# sourceMappingURL=users_subscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users_subscriptions.js","sourceRoot":"","sources":["../../../src/apiClient/users_subscriptions.ts"],"names":[],"mappings":";;;AACA,yDAAwD;AACxD,0CAA8C;AAG9C,MAAa,2BAA4B,SAAQ,iCACgB;IAC/D,YAAY,IAGX;QACC,KAAK,CAAC;YACJ,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,GAAG,uBAAc,CAAC,kBAAkB,EAAE;YAChE,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAA;IACJ,CAAC;CACF;AAXD,kEAWC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserSubscriptionUtils = exports.UserSubscriptionStatus = exports.UserSubscriptionCycleTypeOptions = exports.UsersSubscriptionsApiClient = exports.OutboxEventType = exports.LicensesDefApiClient = exports.LicenseResourcesApiClient = exports.licenseResourceMeasurementTypeOptions = exports.LicenseResourceMeasurementType = exports.LicenseProviderUtils = exports.LicenseProvidersApiClient = exports.LicenseDefUtils = exports.LicenseDefScopeOptions = exports.LicenseDefScope = exports.LicenseCycleTypeOptions = exports.LicenseCycleType = exports.HubSettingsGroups = exports.HubSettings = exports.AuthorizationKeys = exports.ApiRoutesNames = void 0;
|
|
4
|
+
const routes_1 = require("./api/routes");
|
|
5
|
+
Object.defineProperty(exports, "ApiRoutesNames", { enumerable: true, get: function () { return routes_1.ApiRoutesNames; } });
|
|
6
|
+
const license_providers_1 = require("./apiClient/license_providers");
|
|
7
|
+
Object.defineProperty(exports, "LicenseProvidersApiClient", { enumerable: true, get: function () { return license_providers_1.LicenseProvidersApiClient; } });
|
|
8
|
+
const license_resources_1 = require("./apiClient/license_resources");
|
|
9
|
+
Object.defineProperty(exports, "LicenseResourcesApiClient", { enumerable: true, get: function () { return license_resources_1.LicenseResourcesApiClient; } });
|
|
10
|
+
const licenses_def_1 = require("./apiClient/licenses_def");
|
|
11
|
+
Object.defineProperty(exports, "LicensesDefApiClient", { enumerable: true, get: function () { return licenses_def_1.LicensesDefApiClient; } });
|
|
12
|
+
const users_subscriptions_1 = require("./apiClient/users_subscriptions");
|
|
13
|
+
Object.defineProperty(exports, "UsersSubscriptionsApiClient", { enumerable: true, get: function () { return users_subscriptions_1.UsersSubscriptionsApiClient; } });
|
|
14
|
+
const authorizations_1 = require("./models/authorizations");
|
|
15
|
+
Object.defineProperty(exports, "AuthorizationKeys", { enumerable: true, get: function () { return authorizations_1.AuthorizationKeys; } });
|
|
16
|
+
const factories_def_scope_1 = require("./models/factories_def_scope");
|
|
17
|
+
Object.defineProperty(exports, "LicenseDefScopeOptions", { enumerable: true, get: function () { return factories_def_scope_1.LicenseDefScopeOptions; } });
|
|
18
|
+
const factories_def_1 = require("./models/factories_def");
|
|
19
|
+
Object.defineProperty(exports, "LicenseCycleTypeOptions", { enumerable: true, get: function () { return factories_def_1.LicenseCycleTypeOptions; } });
|
|
20
|
+
const factories_user_1 = require("./models/factories_user");
|
|
21
|
+
Object.defineProperty(exports, "UserSubscriptionCycleTypeOptions", { enumerable: true, get: function () { return factories_user_1.UserSubscriptionCycleTypeOptions; } });
|
|
22
|
+
const hubSettings_1 = require("./models/hubSettings");
|
|
23
|
+
Object.defineProperty(exports, "HubSettings", { enumerable: true, get: function () { return hubSettings_1.HubSettings; } });
|
|
24
|
+
Object.defineProperty(exports, "HubSettingsGroups", { enumerable: true, get: function () { return hubSettings_1.HubSettingsGroups; } });
|
|
25
|
+
const models_1 = require("./models");
|
|
26
|
+
Object.defineProperty(exports, "LicenseCycleType", { enumerable: true, get: function () { return models_1.LicenseCycleType; } });
|
|
27
|
+
Object.defineProperty(exports, "LicenseDefScope", { enumerable: true, get: function () { return models_1.LicenseDefScope; } });
|
|
28
|
+
Object.defineProperty(exports, "LicenseResourceMeasurementType", { enumerable: true, get: function () { return models_1.LicenseResourceMeasurementType; } });
|
|
29
|
+
Object.defineProperty(exports, "licenseResourceMeasurementTypeOptions", { enumerable: true, get: function () { return models_1.licenseResourceMeasurementTypeOptions; } });
|
|
30
|
+
Object.defineProperty(exports, "UserSubscriptionStatus", { enumerable: true, get: function () { return models_1.UserSubscriptionStatus; } });
|
|
31
|
+
const outbox_1 = require("./models/outbox");
|
|
32
|
+
Object.defineProperty(exports, "OutboxEventType", { enumerable: true, get: function () { return outbox_1.OutboxEventType; } });
|
|
33
|
+
const licenseDef_1 = require("./utils/licenseDef");
|
|
34
|
+
Object.defineProperty(exports, "LicenseDefUtils", { enumerable: true, get: function () { return licenseDef_1.LicenseDefUtils; } });
|
|
35
|
+
const licenseProvider_1 = require("./utils/licenseProvider");
|
|
36
|
+
Object.defineProperty(exports, "LicenseProviderUtils", { enumerable: true, get: function () { return licenseProvider_1.LicenseProviderUtils; } });
|
|
37
|
+
const userSubscription_1 = require("./utils/userSubscription");
|
|
38
|
+
Object.defineProperty(exports, "UserSubscriptionUtils", { enumerable: true, get: function () { return userSubscription_1.UserSubscriptionUtils; } });
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAA6C;AAmG3C,+FAnGO,uBAAc,OAmGP;AAlGhB,qEAAyE;AAwIvE,0GAxIO,6CAAyB,OAwIP;AAvI3B,qEAAyE;AA2IvE,0GA3IO,6CAAyB,OA2IP;AA1I3B,2DAA+D;AA2I7D,qGA3IO,mCAAoB,OA2IP;AA1ItB,yEAA6E;AA4I3E,4GA5IO,iDAA2B,OA4IP;AA1I7B,4DAEgC;AA4F9B,kGA7FA,kCAAiB,OA6FA;AA9EnB,sEAGqC;AA8GnC,uGA/GA,4CAAsB,OA+GA;AA5GxB,0DAG+B;AAsG7B,wGAvGA,uCAAuB,OAuGA;AApGzB,4DAGgC;AA+G9B,iHAhHA,iDAAgC,OAgHA;AA7GlC,sDAQ6B;AA2D3B,4FA9DA,yBAAW,OA8DA;AACX,kGA7DA,+BAAiB,OA6DA;AA1DnB,qCA+BiB;AAoDf,iGAzDA,yBAAgB,OAyDA;AAGhB,gGA3DA,wBAAe,OA2DA;AAMf,+GAhEA,uCAA8B,OAgEA;AAC9B,sHAhEA,8CAAqC,OAgEA;AAOrC,uGAtEA,+BAAsB,OAsEA;AAnExB,4CAIwB;AA2DtB,gGA5DA,wBAAe,OA4DA;AAzDjB,mDAE2B;AAgDzB,gGAjDA,4BAAe,OAiDA;AA9CjB,6DAEgC;AA8C9B,qGA/CA,sCAAoB,OA+CA;AA5CtB,+DAEiC;AAoD/B,sGArDA,wCAAqB,OAqDA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthorizationKeys = void 0;
|
|
4
|
+
const datacenter_lib_common_ts_1 = require("datacenter-lib-common-ts");
|
|
5
|
+
exports.AuthorizationKeys = {
|
|
6
|
+
...datacenter_lib_common_ts_1.AuthorizationKeys,
|
|
7
|
+
licenseManager: 'lm-admin',
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=authorizations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorizations.js","sourceRoot":"","sources":["../../../src/models/authorizations.ts"],"names":[],"mappings":";;;AAAA,uEAA0E;AAE7D,QAAA,iBAAiB,GAAG;IAC/B,GAAG,4CAAU;IACb,cAAc,EAAE,UAAU;CAClB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dto.js","sourceRoot":"","sources":["../../../src/models/dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LicenseCycleTypeOptions = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const moment_1 = tslib_1.__importDefault(require("moment"));
|
|
6
|
+
const _1 = require(".");
|
|
7
|
+
exports.LicenseCycleTypeOptions = {
|
|
8
|
+
unlimited: {
|
|
9
|
+
desc: 'Ilimitado',
|
|
10
|
+
descAdditional: 'Sem limite de tempo (vitalício).',
|
|
11
|
+
factory: () => ({
|
|
12
|
+
type: _1.LicenseCycleType.unlimited,
|
|
13
|
+
})
|
|
14
|
+
},
|
|
15
|
+
limitTime: {
|
|
16
|
+
desc: 'Com limite de tempo',
|
|
17
|
+
descAdditional: 'Com limite de tempo e não renovável.',
|
|
18
|
+
factory: () => {
|
|
19
|
+
const today = (0, moment_1.default)();
|
|
20
|
+
const sevendaysaftertoday = (0, moment_1.default)(today).add(7, 'day');
|
|
21
|
+
const durationInSeconds = sevendaysaftertoday.diff(today, 'seconds');
|
|
22
|
+
return {
|
|
23
|
+
type: _1.LicenseCycleType.limitTime,
|
|
24
|
+
durationInSeconds,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
recurringLimitTime: {
|
|
29
|
+
desc: 'Renovável com limite de tempo',
|
|
30
|
+
descAdditional: `Com limite de tempo mas renovavel.\n
|
|
31
|
+
Obs.: se o licenciador quiser um limite de 30 dias de licenciamento, esse tipo nao garante o dia fixo no mes,\n
|
|
32
|
+
os dias serao corridos e contados a partir da data de aquisicao mas os meses variam de tamanho,\n
|
|
33
|
+
portanto os vencimentos nao serão em dias fixos.\n
|
|
34
|
+
Para dias fixos no mes, deve-se usar a licença do tipo "Renovável mensal com dias fixos" ou "Renovável mensal com dia de vencimento pré-fixado"`,
|
|
35
|
+
factory: () => {
|
|
36
|
+
const today = (0, moment_1.default)();
|
|
37
|
+
const thirtydaysaftertoday = (0, moment_1.default)(today).add(30, 'day');
|
|
38
|
+
const durationInSeconds = thirtydaysaftertoday.diff(today, 'seconds');
|
|
39
|
+
return {
|
|
40
|
+
type: _1.LicenseCycleType.recurringLimitTime,
|
|
41
|
+
durationInSeconds,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
recurringMonthlyFixedDay: {
|
|
46
|
+
desc: 'Renovável mensal com dias fixos',
|
|
47
|
+
descAdditional: `Mensal contados a partir da data de aquisicao, o dia de renovacao é o mesmo da data de aquisicao.\n
|
|
48
|
+
Ex.: a cada dia 10 de cada mes, sendo o dia 10 do mes x o dia da aquisicao.\n
|
|
49
|
+
Caso o dia de aquisição não exista no próximo mês de renovação, o dia será o último dia do mês, isso ocorre nos dias 31, 30 e 29 dependendo do mês.\n
|
|
50
|
+
Provedores de streams usam esse tipo de licenca (netflix, amazon, etc).`,
|
|
51
|
+
factory: () => {
|
|
52
|
+
return {
|
|
53
|
+
type: _1.LicenseCycleType.recurringMonthlyFixedDay,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
recurringMonthlyUserDay: {
|
|
58
|
+
desc: 'Renovável mensal com dia de vencimento pré-fixado',
|
|
59
|
+
descAdditional: `Mensal com dia fixo escolhido pelo usuario.\n
|
|
60
|
+
Essa licença não é muito difundida por licenciadores de servicos online mas é bem comum em servicos como
|
|
61
|
+
os de cartoes de credito, contas de luz e etc.\n
|
|
62
|
+
Caso o dia de vencimento escolhido não exista no próximo mês de renovação, o dia será o último dia do mês, isso ocorre nos dias 31, 30 e 29 dependendo do mês.\n
|
|
63
|
+
Embora esses serviços não sejam necessariamente de software, são serviços licenciados por periodos recorrentes.`,
|
|
64
|
+
factory: () => {
|
|
65
|
+
return {
|
|
66
|
+
type: _1.LicenseCycleType.recurringMonthlyUserDay,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
recurringYearlyFixedDayAndMonth: {
|
|
71
|
+
desc: 'Renovável anual com dia/mês fixos',
|
|
72
|
+
descAdditional: `Anual contados a partir da data de aquisicao, o dia de renovacao é o mesmo da data de aquisicao.\n
|
|
73
|
+
Ex.: a cada dia 10 de janeiro de cada ano, sendo o dia 10 de janeiro do ano x o dia da aquisicao.`,
|
|
74
|
+
factory: () => {
|
|
75
|
+
return {
|
|
76
|
+
type: _1.LicenseCycleType.recurringYearlyFixedDayAndMonth,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=factories_def.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factories_def.js","sourceRoot":"","sources":["../../../src/models/factories_def.ts"],"names":[],"mappings":";;;;AAAA,4DAA4B;AAC5B,wBAAmV;AAGtU,QAAA,uBAAuB,GAI/B;IACH,SAAS,EAAE;QACT,IAAI,EAAE,WAAW;QACjB,cAAc,EAAE,kCAAkC;QAClD,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;YACd,IAAI,EAAE,mBAAgB,CAAC,SAAS;SACM,CAAA;KACzC;IACD,SAAS,EAAE;QACT,IAAI,EAAE,qBAAqB;QAC3B,cAAc,EAAE,sCAAsC;QACtD,OAAO,EAAE,GAAG,EAAE;YACZ,MAAM,KAAK,GAAG,IAAA,gBAAM,GAAE,CAAA;YACtB,MAAM,mBAAmB,GAAG,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA;YACvD,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;YACpE,OAAO;gBACL,IAAI,EAAE,mBAAgB,CAAC,SAAS;gBAChC,iBAAiB;aACoB,CAAA;QACzC,CAAC;KACF;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,+BAA+B;QACrC,cAAc,EAAE;;;;gJAI4H;QAC5I,OAAO,EAAE,GAAG,EAAE;YACZ,MAAM,KAAK,GAAG,IAAA,gBAAM,GAAE,CAAA;YACtB,MAAM,oBAAoB,GAAG,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,CAAA;YACzD,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;YACrE,OAAO;gBACL,IAAI,EAAE,mBAAgB,CAAC,kBAAkB;gBACzC,iBAAiB;aAC6B,CAAA;QAClD,CAAC;KACF;IACD,wBAAwB,EAAE;QACxB,IAAI,EAAE,iCAAiC;QACvC,cAAc,EAAE;;;wEAGoD;QACpE,OAAO,EAAE,GAAG,EAAE;YACZ,OAAO;gBACL,IAAI,EAAE,mBAAgB,CAAC,wBAAwB;aACK,CAAA;QACxD,CAAC;KACF;IACD,uBAAuB,EAAE;QACvB,IAAI,EAAE,mDAAmD;QACzD,cAAc,EAAE;;;;gHAI4F;QAC5G,OAAO,EAAE,GAAG,EAAE;YACZ,OAAO;gBACL,IAAI,EAAE,mBAAgB,CAAC,uBAAuB;aACK,CAAA;QACvD,CAAC;KACF;IACD,+BAA+B,EAAE;QAC/B,IAAI,EAAE,mCAAmC;QACzC,cAAc,EAAE;kGAC8E;QAC9F,OAAO,EAAE,GAAG,EAAE;YACZ,OAAO;gBACL,IAAI,EAAE,mBAAgB,CAAC,+BAA+B;aACK,CAAA;QAC/D,CAAC;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LicenseDefScopeOptions = void 0;
|
|
4
|
+
exports.LicenseDefScopeOptions = {
|
|
5
|
+
public: {
|
|
6
|
+
desc: 'Público',
|
|
7
|
+
descAdditional: `Licenças públicas podem ter assinaturas geradas pelos próprios usuários finais sem supervisão de administradores do provedor.\n
|
|
8
|
+
A maioria das linceças se encaxam nesse modelo.\n
|
|
9
|
+
Nesse tipo de licença o usuario escolhe sua própria licença e o sistema faz o resto sozinho.\n
|
|
10
|
+
Um bom exemplo são licenças "Trials" que podem ser geradas ao se cadastrar em um sistema.`,
|
|
11
|
+
},
|
|
12
|
+
restricted: {
|
|
13
|
+
desc: 'Restrito',
|
|
14
|
+
descAdditional: `Licenças restritas não podem ter assinaturas geradas pelos próprios usuários finais.\n
|
|
15
|
+
Apenas administradores do provedor (usuários SysAdm ou Administradores) podem gerar assinaturas para essas licenças.\n
|
|
16
|
+
Esse tipo de escopo é útil quando o sistema não tem gerenciamento automático de pagamento onde o usuário final precisa de uma autorização manual para usar o sistema.`,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=factories_def_scope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factories_def_scope.js","sourceRoot":"","sources":["../../../src/models/factories_def_scope.ts"],"names":[],"mappings":";;;AAGa,QAAA,sBAAsB,GAG9B;IACH,MAAM,EAAE;QACN,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;;;0FAGsE;KACvF;IACD,UAAU,EAAE;QACV,IAAI,EAAE,UAAU;QAChB,cAAc,EAAE;;sKAEkJ;KACnK;CACF,CAAA"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserSubscriptionCycleTypeOptions = void 0;
|
|
4
|
+
exports.getNextBillingDate = getNextBillingDate;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const moment_1 = tslib_1.__importDefault(require("moment"));
|
|
7
|
+
const _1 = require(".");
|
|
8
|
+
function getNextBillingDate(billingDay) {
|
|
9
|
+
const today = (0, moment_1.default)();
|
|
10
|
+
function createValidDate(baseDate) {
|
|
11
|
+
const lastDayOfMonth = baseDate.clone().endOf('month').date();
|
|
12
|
+
const day = Math.min(billingDay, lastDayOfMonth);
|
|
13
|
+
return baseDate.clone().date(day).startOf('day');
|
|
14
|
+
}
|
|
15
|
+
// Try current month
|
|
16
|
+
let nextBillingDate = createValidDate(today.clone());
|
|
17
|
+
// If already passed, move to next month
|
|
18
|
+
if (today.isAfter(nextBillingDate, 'day')) {
|
|
19
|
+
nextBillingDate = createValidDate(today.clone().add(1, 'month'));
|
|
20
|
+
}
|
|
21
|
+
return nextBillingDate;
|
|
22
|
+
}
|
|
23
|
+
exports.UserSubscriptionCycleTypeOptions = {
|
|
24
|
+
unlimited: {
|
|
25
|
+
factory: (args) => {
|
|
26
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.unlimited) {
|
|
27
|
+
throw new Error('Invalid cycle type');
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
type: _1.LicenseCycleType.unlimited,
|
|
31
|
+
startAtDateUnix: (0, moment_1.default)().unix(),
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
factory2: (args) => {
|
|
35
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.unlimited) {
|
|
36
|
+
throw new Error('Invalid cycle type');
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
type: _1.LicenseCycleType.unlimited,
|
|
40
|
+
startAtDateUnix: (0, moment_1.default)().unix(),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
limitTime: {
|
|
45
|
+
factory: (args) => {
|
|
46
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.limitTime)
|
|
47
|
+
throw new Error('Invalid cycle type');
|
|
48
|
+
const cycleTypeData = args.licenseDefCycleTypeData;
|
|
49
|
+
const today = (0, moment_1.default)();
|
|
50
|
+
const endAtDateUnix = (0, moment_1.default)(today).add(cycleTypeData.durationInSeconds, 'second');
|
|
51
|
+
return {
|
|
52
|
+
type: _1.LicenseCycleType.limitTime,
|
|
53
|
+
startAtDateUnix: today.unix(),
|
|
54
|
+
endAtDateUnix: endAtDateUnix.unix(),
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
factory2: (args) => {
|
|
58
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.limitTime)
|
|
59
|
+
throw new Error('Invalid cycle type');
|
|
60
|
+
const cycleTypeData = args.licenseDefCycleTypeData;
|
|
61
|
+
const today = (0, moment_1.default)();
|
|
62
|
+
const endAtDateUnix = (0, moment_1.default)(today).add(cycleTypeData.durationInSeconds, 'second');
|
|
63
|
+
return {
|
|
64
|
+
type: _1.LicenseCycleType.limitTime,
|
|
65
|
+
startAtDateUnix: today.unix(),
|
|
66
|
+
endAtDateUnix: endAtDateUnix.unix(),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
recurringLimitTime: {
|
|
71
|
+
factory: (args) => {
|
|
72
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.recurringLimitTime)
|
|
73
|
+
throw new Error('Invalid cycle type');
|
|
74
|
+
const cycleTypeData = args.licenseDefCycleTypeData;
|
|
75
|
+
const today = (0, moment_1.default)();
|
|
76
|
+
const daysaftertoday = (0, moment_1.default)(today).add(cycleTypeData.durationInSeconds, 'second');
|
|
77
|
+
return {
|
|
78
|
+
type: _1.LicenseCycleType.recurringLimitTime,
|
|
79
|
+
startAtDateUnix: today.unix(),
|
|
80
|
+
endAtDateUnix: daysaftertoday.unix(),
|
|
81
|
+
nextRenewDateUnix: daysaftertoday.add(1, 'second').unix(),
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
factory2: (args) => {
|
|
85
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.recurringLimitTime)
|
|
86
|
+
throw new Error('Invalid cycle type');
|
|
87
|
+
const cycleTypeData = args.licenseDefCycleTypeData;
|
|
88
|
+
const today = (0, moment_1.default)();
|
|
89
|
+
const daysaftertoday = (0, moment_1.default)(today).add(cycleTypeData.durationInSeconds, 'second');
|
|
90
|
+
return {
|
|
91
|
+
type: _1.LicenseCycleType.recurringLimitTime,
|
|
92
|
+
startAtDateUnix: today.unix(),
|
|
93
|
+
endAtDateUnix: daysaftertoday.unix(),
|
|
94
|
+
nextRenewDateUnix: daysaftertoday.add(1, 'second').unix(),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
recurringMonthlyFixedDay: {
|
|
99
|
+
factory: (args) => {
|
|
100
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.recurringMonthlyFixedDay)
|
|
101
|
+
throw new Error('Invalid cycle type');
|
|
102
|
+
// const cycleTypeData: ILicenseDefCycleTypeData_recurringMonthlyFixedDay = args.licenseDefCycleTypeData as ILicenseDefCycleTypeData_recurringMonthlyFixedDay
|
|
103
|
+
const today = (0, moment_1.default)();
|
|
104
|
+
const daysaftertoday = (0, moment_1.default)(today).add(1, 'month').subtract(1, 'day');
|
|
105
|
+
return {
|
|
106
|
+
type: _1.LicenseCycleType.recurringMonthlyFixedDay,
|
|
107
|
+
startAtDateUnix: today.unix(),
|
|
108
|
+
endAtDateUnix: daysaftertoday.unix(),
|
|
109
|
+
nextRenewDateUnix: daysaftertoday.add(1, 'second').unix(),
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
factory2: (args) => {
|
|
113
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.recurringMonthlyFixedDay)
|
|
114
|
+
throw new Error('Invalid cycle type');
|
|
115
|
+
// const cycleTypeData: ILicenseDefCycleTypeData_recurringMonthlyFixedDay = args.licenseDefCycleTypeData as ILicenseDefCycleTypeData_recurringMonthlyFixedDay
|
|
116
|
+
const today = (0, moment_1.default)();
|
|
117
|
+
const daysaftertoday = (0, moment_1.default)(today).add(1, 'month').subtract(1, 'day');
|
|
118
|
+
return {
|
|
119
|
+
type: _1.LicenseCycleType.recurringMonthlyFixedDay,
|
|
120
|
+
startAtDateUnix: today.unix(),
|
|
121
|
+
endAtDateUnix: daysaftertoday.unix(),
|
|
122
|
+
nextRenewDateUnix: daysaftertoday.add(1, 'second').unix(),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
recurringMonthlyUserDay: {
|
|
127
|
+
factory: (args) => {
|
|
128
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.recurringMonthlyUserDay)
|
|
129
|
+
throw new Error('Invalid cycle type');
|
|
130
|
+
// const cycleTypeData: ILicenseDefCycleTypeData_recurringMonthlyUserDay = args.licenseDefCycleTypeData as ILicenseDefCycleTypeData_recurringMonthlyUserDay
|
|
131
|
+
const today = (0, moment_1.default)();
|
|
132
|
+
// padrao dia 10
|
|
133
|
+
const endAtDateUnix = getNextBillingDate(10);
|
|
134
|
+
return {
|
|
135
|
+
type: _1.LicenseCycleType.recurringMonthlyUserDay,
|
|
136
|
+
startAtDateUnix: today.unix(),
|
|
137
|
+
endAtDateUnix: endAtDateUnix.unix(),
|
|
138
|
+
nextRenewDateUnix: endAtDateUnix.add(1, 'second').unix(),
|
|
139
|
+
};
|
|
140
|
+
},
|
|
141
|
+
factory2: (args) => {
|
|
142
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.recurringMonthlyUserDay)
|
|
143
|
+
throw new Error('Invalid cycle type');
|
|
144
|
+
if (!args.userLicenseCycleTypeDataPostPayload)
|
|
145
|
+
throw new Error('Invalid user cycle type');
|
|
146
|
+
const today = (0, moment_1.default)();
|
|
147
|
+
const day = args.userLicenseCycleTypeDataPostPayload.day;
|
|
148
|
+
const endAtDateUnix = getNextBillingDate(day);
|
|
149
|
+
return {
|
|
150
|
+
type: _1.LicenseCycleType.recurringMonthlyUserDay,
|
|
151
|
+
startAtDateUnix: today.unix(),
|
|
152
|
+
endAtDateUnix: endAtDateUnix.unix(),
|
|
153
|
+
nextRenewDateUnix: endAtDateUnix.add(1, 'second').unix(),
|
|
154
|
+
day,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
recurringYearlyFixedDayAndMonth: {
|
|
159
|
+
factory: (args) => {
|
|
160
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.recurringYearlyFixedDayAndMonth)
|
|
161
|
+
throw new Error('Invalid cycle type');
|
|
162
|
+
// const cycleTypeData: ILicenseDefCycleTypeData_recurringYearlyFixedDayAndMonth = args.licenseDefCycleTypeData as ILicenseDefCycleTypeData_recurringYearlyFixedDayAndMonth
|
|
163
|
+
const today = (0, moment_1.default)();
|
|
164
|
+
const daysaftertoday = (0, moment_1.default)(today).add(1, 'year').subtract(1, 'day');
|
|
165
|
+
return {
|
|
166
|
+
startAtDateUnix: today.unix(),
|
|
167
|
+
endAtDateUnix: daysaftertoday.unix(),
|
|
168
|
+
nextRenewDateUnix: daysaftertoday.add(1, 'second').unix(),
|
|
169
|
+
type: _1.LicenseCycleType.recurringYearlyFixedDayAndMonth,
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
factory2: (args) => {
|
|
173
|
+
if (args.licenseDefCycleTypeData.type !== _1.LicenseCycleType.recurringYearlyFixedDayAndMonth)
|
|
174
|
+
throw new Error('Invalid cycle type');
|
|
175
|
+
// const cycleTypeData: ILicenseDefCycleTypeData_recurringYearlyFixedDayAndMonth = args.licenseDefCycleTypeData as ILicenseDefCycleTypeData_recurringYearlyFixedDayAndMonth
|
|
176
|
+
const today = (0, moment_1.default)();
|
|
177
|
+
const daysaftertoday = (0, moment_1.default)(today).add(1, 'year').subtract(1, 'day');
|
|
178
|
+
return {
|
|
179
|
+
startAtDateUnix: today.unix(),
|
|
180
|
+
endAtDateUnix: daysaftertoday.unix(),
|
|
181
|
+
nextRenewDateUnix: daysaftertoday.add(1, 'second').unix(),
|
|
182
|
+
type: _1.LicenseCycleType.recurringYearlyFixedDayAndMonth,
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
};
|
|
187
|
+
//# sourceMappingURL=factories_user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factories_user.js","sourceRoot":"","sources":["../../../src/models/factories_user.ts"],"names":[],"mappings":";;;AAIA,gDAmBC;;AAvBD,4DAA4B;AAC5B,wBAAqc;AAGrc,SAAgB,kBAAkB,CAAC,UAAkB;IACnD,MAAM,KAAK,GAAG,IAAA,gBAAM,GAAE,CAAA;IAEtB,SAAS,eAAe,CAAC,QAAuB;QAC9C,MAAM,cAAc,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAA;QAC7D,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,cAAc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AAA;QAChE,CAAC;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HubSettingsGroups = exports.HubSettings = void 0;
|
|
4
|
+
var HubSettings;
|
|
5
|
+
(function (HubSettings) {
|
|
6
|
+
HubSettings["LmUserRegisterSubscription"] = "lm-user-register-subscription";
|
|
7
|
+
HubSettings["LmResourceWorkgroup"] = "lm-resource-workgroup";
|
|
8
|
+
})(HubSettings || (exports.HubSettings = HubSettings = {}));
|
|
9
|
+
var HubSettingsGroups;
|
|
10
|
+
(function (HubSettingsGroups) {
|
|
11
|
+
HubSettingsGroups["datacenter"] = "datacenter";
|
|
12
|
+
})(HubSettingsGroups || (exports.HubSettingsGroups = HubSettingsGroups = {}));
|
|
13
|
+
//# sourceMappingURL=hubSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hubSettings.js","sourceRoot":"","sources":["../../../src/models/hubSettings.ts"],"names":[],"mappings":";;;AAIA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,2EAA4D,CAAA;IAC5D,4DAA6C,CAAA;AAC/C,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AACD,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IAC3B,8CAAyB,CAAA;AAC3B,CAAC,EAFW,iBAAiB,iCAAjB,iBAAiB,QAE5B"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserSubscriptionStatus = exports.LicenseDefScope = exports.licenseResourceMeasurementTypeOptions = exports.LicenseResourceMeasurementType = exports.LicenseCycleType = void 0;
|
|
4
|
+
var LicenseCycleType;
|
|
5
|
+
(function (LicenseCycleType) {
|
|
6
|
+
// sem limite de tempo (vitalicio)
|
|
7
|
+
LicenseCycleType[LicenseCycleType["unlimited"] = 0] = "unlimited";
|
|
8
|
+
// com limite de tempo
|
|
9
|
+
LicenseCycleType[LicenseCycleType["limitTime"] = 1] = "limitTime";
|
|
10
|
+
// com limite de tempo mas renovavel
|
|
11
|
+
// obs.: se o tenant quiser um limite de 30 dias de licenciamento, esse tipo nao garante o dia fixo no mes
|
|
12
|
+
// os dias serao corridos e contados a partir da data de aquisicao mas os meses variam de tamanho
|
|
13
|
+
// portanto os vencimentos nao serão em dias fixos
|
|
14
|
+
// para dias fixos no mes, deve-se usar recurringMonthlyFixedDay ou recurringMonthlyUserDay
|
|
15
|
+
LicenseCycleType[LicenseCycleType["recurringLimitTime"] = 2] = "recurringLimitTime";
|
|
16
|
+
// mensal contados a partir da data de aquisicao, o dia de renovacao é o mesmo da data de aquisicao
|
|
17
|
+
// ex.: a cada dia 10 de cada mes, sendo o dia 10 do mes x o dia da aquisicao
|
|
18
|
+
// provedores de streams usam esse tipo de licenca (netflix, amazon, etc)
|
|
19
|
+
LicenseCycleType[LicenseCycleType["recurringMonthlyFixedDay"] = 3] = "recurringMonthlyFixedDay";
|
|
20
|
+
// mensal com dia fixo escolhido pelo usuario
|
|
21
|
+
// desconheco esse uso por licenciadores de servicos online mas é bem difundido em servicos financeiros
|
|
22
|
+
// cartoes de credito, contas de luz e etc usam esse tipo de cobranca
|
|
23
|
+
// embora esses servicos nao sejam necessariamente de software sao servicoes licenciados por periodos recorrentes
|
|
24
|
+
LicenseCycleType[LicenseCycleType["recurringMonthlyUserDay"] = 4] = "recurringMonthlyUserDay";
|
|
25
|
+
// anual contados a partir da data de aquisicao, o dia de renovacao é o mesmo da data de aquisicao
|
|
26
|
+
// ex.: a cada dia 10 de janeiro de cada ano, sendo o dia 10 de janeiro do ano x o dia da aquisicao
|
|
27
|
+
LicenseCycleType[LicenseCycleType["recurringYearlyFixedDayAndMonth"] = 5] = "recurringYearlyFixedDayAndMonth";
|
|
28
|
+
})(LicenseCycleType || (exports.LicenseCycleType = LicenseCycleType = {}));
|
|
29
|
+
var LicenseResourceMeasurementType;
|
|
30
|
+
(function (LicenseResourceMeasurementType) {
|
|
31
|
+
LicenseResourceMeasurementType[LicenseResourceMeasurementType["metered"] = 1] = "metered";
|
|
32
|
+
LicenseResourceMeasurementType[LicenseResourceMeasurementType["meteredUnlimited"] = 2] = "meteredUnlimited";
|
|
33
|
+
// unmetered = 3,
|
|
34
|
+
})(LicenseResourceMeasurementType || (exports.LicenseResourceMeasurementType = LicenseResourceMeasurementType = {}));
|
|
35
|
+
exports.licenseResourceMeasurementTypeOptions = {
|
|
36
|
+
metered: {
|
|
37
|
+
desc: 'Quantidade limitada',
|
|
38
|
+
},
|
|
39
|
+
meteredUnlimited: {
|
|
40
|
+
desc: 'Controle de instancia do recurso mas sem controle de quantidade'
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
var LicenseDefScope;
|
|
44
|
+
(function (LicenseDefScope) {
|
|
45
|
+
LicenseDefScope[LicenseDefScope["public"] = 1] = "public";
|
|
46
|
+
LicenseDefScope[LicenseDefScope["restricted"] = 2] = "restricted";
|
|
47
|
+
})(LicenseDefScope || (exports.LicenseDefScope = LicenseDefScope = {}));
|
|
48
|
+
var UserSubscriptionStatus;
|
|
49
|
+
(function (UserSubscriptionStatus) {
|
|
50
|
+
UserSubscriptionStatus["pending"] = "pending";
|
|
51
|
+
UserSubscriptionStatus["trial"] = "trial";
|
|
52
|
+
UserSubscriptionStatus["active"] = "active";
|
|
53
|
+
UserSubscriptionStatus["grace_period"] = "grace_period";
|
|
54
|
+
UserSubscriptionStatus["suspended"] = "suspended";
|
|
55
|
+
UserSubscriptionStatus["canceled"] = "canceled";
|
|
56
|
+
UserSubscriptionStatus["expired"] = "expired";
|
|
57
|
+
UserSubscriptionStatus["revoked"] = "revoked";
|
|
58
|
+
})(UserSubscriptionStatus || (exports.UserSubscriptionStatus = UserSubscriptionStatus = {}));
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;AAaA,IAAY,gBA4BX;AA5BD,WAAY,gBAAgB;IAC1B,kCAAkC;IAClC,iEAAa,CAAA;IAEb,sBAAsB;IACtB,iEAAa,CAAA;IAEb,oCAAoC;IACpC,0GAA0G;IAC1G,iGAAiG;IACjG,kDAAkD;IAClD,2FAA2F;IAC3F,mFAAsB,CAAA;IAEtB,oGAAoG;IACpG,6EAA6E;IAC7E,yEAAyE;IACzE,+FAA4B,CAAA;IAE5B,6CAA6C;IAC7C,uGAAuG;IACvG,qEAAqE;IACrE,iHAAiH;IACjH,6FAA2B,CAAA;IAE3B,kGAAkG;IAClG,mGAAmG;IACnG,6GAAmC,CAAA;AACrC,CAAC,EA5BW,gBAAgB,gCAAhB,gBAAgB,QA4B3B;AA8BD,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACxC,yFAAW,CAAA;IACX,2GAAoB,CAAA;IACpB,iBAAiB;AACnB,CAAC,EAJW,8BAA8B,8CAA9B,8BAA8B,QAIzC;AAEY,QAAA,qCAAqC,GAE7C;IACH,OAAO,EAAE;QACP,IAAI,EAAE,qBAAqB;KAC5B;IACD,gBAAgB,EAAE;QAChB,IAAI,EAAE,iEAAiE;KACxE;CACF,CAAA;AAsBD,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,yDAAU,CAAA;IACV,iEAAc,CAAA;AAChB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AA6ED,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,6CAAmB,CAAA;IACnB,yCAAe,CAAA;IACf,2CAAiB,CAAA;IACjB,uDAA6B,CAAA;IAC7B,iDAAuB,CAAA;IACvB,+CAAqB,CAAA;IACrB,6CAAmB,CAAA;IACnB,6CAAmB,CAAA;AACrB,CAAC,EATW,sBAAsB,sCAAtB,sBAAsB,QASjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OutboxEventType = void 0;
|
|
4
|
+
exports.OutboxEventType = {
|
|
5
|
+
subscriptionNew: 'subscription_new',
|
|
6
|
+
subscriptionResourceInstanceNew: 'subscription_resource_instance_new'
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=outbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outbox.js","sourceRoot":"","sources":["../../../src/models/outbox.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAG;IAC7B,eAAe,EAAE,kBAAkB;IACnC,+BAA+B,EAAE,oCAAoC;CAC7D,CAAA"}
|