@ayasofyazilim/saas 0.0.36 → 0.0.38
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/AccountService/core/ApiRequestOptions.ts +12 -12
- package/AccountService/core/BaseHttpRequest.ts +9 -9
- package/AccountService/core/FetchHttpRequest.ts +21 -21
- package/AccountService/core/OpenAPI.ts +55 -55
- package/AccountService/core/request.ts +340 -340
- package/AccountService/index.ts +8 -8
- package/AdministrationService/core/ApiRequestOptions.ts +12 -12
- package/AdministrationService/core/BaseHttpRequest.ts +9 -9
- package/AdministrationService/core/FetchHttpRequest.ts +21 -21
- package/AdministrationService/core/OpenAPI.ts +55 -55
- package/AdministrationService/core/request.ts +340 -340
- package/BackerService/core/ApiRequestOptions.ts +12 -12
- package/BackerService/core/BaseHttpRequest.ts +9 -9
- package/BackerService/core/FetchHttpRequest.ts +21 -21
- package/BackerService/core/OpenAPI.ts +55 -55
- package/BackerService/core/request.ts +340 -340
- package/BackerService/index.ts +8 -8
- package/BackerService/services.gen.ts +866 -866
- package/CRMService/schemas.gen.ts +3 -15
- package/CRMService/services.gen.ts +444 -9
- package/CRMService/types.gen.ts +692 -50
- package/FundraiserService/core/ApiRequestOptions.ts +12 -12
- package/FundraiserService/core/BaseHttpRequest.ts +9 -9
- package/FundraiserService/core/FetchHttpRequest.ts +21 -21
- package/FundraiserService/core/OpenAPI.ts +55 -55
- package/FundraiserService/core/request.ts +340 -340
- package/FundraiserService/index.ts +8 -8
- package/FundraiserService/services.gen.ts +627 -627
- package/IdentityService/core/ApiRequestOptions.ts +12 -12
- package/IdentityService/core/BaseHttpRequest.ts +9 -9
- package/IdentityService/core/FetchHttpRequest.ts +21 -21
- package/IdentityService/core/OpenAPI.ts +55 -55
- package/IdentityService/core/request.ts +340 -340
- package/IdentityService/index.ts +8 -8
- package/MerchantService/core/ApiRequestOptions.ts +12 -12
- package/MerchantService/core/BaseHttpRequest.ts +9 -9
- package/MerchantService/core/FetchHttpRequest.ts +21 -21
- package/MerchantService/core/OpenAPI.ts +55 -55
- package/MerchantService/core/request.ts +340 -340
- package/MerchantService/schemas.gen.ts +14764 -14764
- package/MerchantService/services.gen.ts +1602 -1602
- package/ProjectService/core/ApiRequestOptions.ts +12 -12
- package/ProjectService/core/BaseHttpRequest.ts +9 -9
- package/ProjectService/core/FetchHttpRequest.ts +21 -21
- package/ProjectService/core/OpenAPI.ts +55 -55
- package/ProjectService/core/request.ts +340 -340
- package/ProjectService/index.ts +8 -8
- package/ProjectService/services.gen.ts +492 -492
- package/ProjectService.json +2937 -2937
- package/SaasService/core/ApiRequestOptions.ts +12 -12
- package/SaasService/core/BaseHttpRequest.ts +9 -9
- package/SaasService/core/FetchHttpRequest.ts +21 -21
- package/SaasService/core/OpenAPI.ts +55 -55
- package/SaasService/core/request.ts +340 -340
- package/SaasService/index.ts +8 -8
- package/TravellerService/TravellerServiceClient.ts +56 -56
- package/TravellerService/core/ApiError.ts +20 -20
- package/TravellerService/core/ApiRequestOptions.ts +12 -12
- package/TravellerService/core/ApiResult.ts +6 -6
- package/TravellerService/core/BaseHttpRequest.ts +9 -9
- package/TravellerService/core/CancelablePromise.ts +125 -125
- package/TravellerService/core/FetchHttpRequest.ts +21 -21
- package/TravellerService/core/OpenAPI.ts +55 -55
- package/TravellerService/core/request.ts +340 -340
- package/TravellerService/index.ts +8 -8
- package/TravellerService/schemas.gen.ts +6204 -7980
- package/TravellerService/services.gen.ts +695 -709
- package/TravellerService/types.gen.ts +1808 -1850
- package/generator.mjs +4 -8
- package/package.json +1 -1
- package/swagger.json +4794 -4794
package/generator.mjs
CHANGED
|
@@ -47,36 +47,32 @@ var initial_api_list = [
|
|
|
47
47
|
{
|
|
48
48
|
input: "swagger-json/Setting",
|
|
49
49
|
output: "Setting",
|
|
50
|
-
port: 44335,
|
|
51
50
|
dereference: true,
|
|
52
51
|
},
|
|
53
52
|
{
|
|
54
53
|
input: "swagger-json/CRM",
|
|
55
54
|
output: "CRM",
|
|
56
|
-
port: 44335,
|
|
57
55
|
dereference: true,
|
|
58
56
|
},
|
|
59
57
|
{
|
|
60
58
|
input: "swagger-json/Contract",
|
|
61
59
|
output: "Contract",
|
|
62
|
-
port: 44335,
|
|
63
60
|
dereference: true,
|
|
64
61
|
},
|
|
65
62
|
{
|
|
66
63
|
input: "swagger-json/Traveller",
|
|
67
64
|
output: "Traveller",
|
|
68
|
-
port: 44335,
|
|
69
65
|
dereference: true,
|
|
70
66
|
},
|
|
71
67
|
];
|
|
72
68
|
|
|
73
69
|
function clean_URL(url) {
|
|
74
|
-
return url.replace(/\/\//g,
|
|
70
|
+
return url.replace(/\/\//g,"/").replace(/:\//g,"://");
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
function getCircularReplacer() {
|
|
78
74
|
const ancestors = [];
|
|
79
|
-
return function (key,
|
|
75
|
+
return function (key,value) {
|
|
80
76
|
if (typeof value !== "object" || value === null) {
|
|
81
77
|
return value;
|
|
82
78
|
}
|
|
@@ -108,7 +104,7 @@ async function generateApi(api_list) {
|
|
|
108
104
|
temp_swagger = `temp_${api.output}_swagger.json`;
|
|
109
105
|
fs.writeFileSync(
|
|
110
106
|
temp_swagger,
|
|
111
|
-
JSON.stringify(swaggerText,
|
|
107
|
+
JSON.stringify(swaggerText,getCircularReplacer()),
|
|
112
108
|
);
|
|
113
109
|
|
|
114
110
|
await createClient({
|
|
@@ -153,7 +149,7 @@ async function generateApi(api_list) {
|
|
|
153
149
|
const args = process.argv.filter((val) => val.startsWith("--"));
|
|
154
150
|
const isAll = args.filter((val) => val === "--all").length > 0;
|
|
155
151
|
const hasFilter = args.filter((val) => val.startsWith("--filter")).length > 0;
|
|
156
|
-
const knownArgs = ["--all",
|
|
152
|
+
const knownArgs = ["--all","--filter"];
|
|
157
153
|
const unknownArgs = args.filter(
|
|
158
154
|
(val) =>
|
|
159
155
|
!knownArgs.includes(val) && !knownArgs.includes(val.split("=").at(0)),
|