@ayasofyazilim/saas 0.0.38 → 0.0.40

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.
Files changed (78) hide show
  1. package/AccountService/core/ApiRequestOptions.ts +12 -12
  2. package/AccountService/core/BaseHttpRequest.ts +9 -9
  3. package/AccountService/core/FetchHttpRequest.ts +21 -21
  4. package/AccountService/core/OpenAPI.ts +55 -55
  5. package/AccountService/core/request.ts +340 -340
  6. package/AdministrationService/core/ApiRequestOptions.ts +12 -12
  7. package/AdministrationService/core/BaseHttpRequest.ts +9 -9
  8. package/AdministrationService/core/FetchHttpRequest.ts +21 -21
  9. package/AdministrationService/core/OpenAPI.ts +55 -55
  10. package/AdministrationService/core/request.ts +340 -340
  11. package/BackerService/core/ApiRequestOptions.ts +12 -12
  12. package/BackerService/core/BaseHttpRequest.ts +9 -9
  13. package/BackerService/core/FetchHttpRequest.ts +21 -21
  14. package/BackerService/core/OpenAPI.ts +55 -55
  15. package/BackerService/core/request.ts +340 -340
  16. package/CRMService/schemas.gen.ts +15920 -15920
  17. package/CRMService/services.gen.ts +2052 -2052
  18. package/CRMService/types.gen.ts +4106 -4106
  19. package/ContractService/schemas.gen.ts +258 -157
  20. package/ContractService/services.gen.ts +139 -139
  21. package/ContractService/types.gen.ts +231 -217
  22. package/FundraiserService/core/ApiRequestOptions.ts +12 -12
  23. package/FundraiserService/core/BaseHttpRequest.ts +9 -9
  24. package/FundraiserService/core/FetchHttpRequest.ts +21 -21
  25. package/FundraiserService/core/OpenAPI.ts +55 -55
  26. package/FundraiserService/core/request.ts +340 -340
  27. package/IdentityService/core/ApiRequestOptions.ts +12 -12
  28. package/IdentityService/core/BaseHttpRequest.ts +9 -9
  29. package/IdentityService/core/FetchHttpRequest.ts +21 -21
  30. package/IdentityService/core/OpenAPI.ts +55 -55
  31. package/IdentityService/core/request.ts +340 -340
  32. package/LocationService/LocationServiceClient.ts +110 -0
  33. package/LocationService/core/ApiError.ts +21 -0
  34. package/LocationService/core/ApiRequestOptions.ts +13 -0
  35. package/LocationService/core/ApiResult.ts +7 -0
  36. package/LocationService/core/BaseHttpRequest.ts +10 -0
  37. package/LocationService/core/CancelablePromise.ts +126 -0
  38. package/LocationService/core/FetchHttpRequest.ts +22 -0
  39. package/LocationService/core/OpenAPI.ts +56 -0
  40. package/LocationService/core/request.ts +341 -0
  41. package/LocationService/index.ts +9 -0
  42. package/LocationService/schemas.gen.ts +10137 -0
  43. package/LocationService/services.gen.ts +3393 -0
  44. package/LocationService/types.gen.ts +6508 -0
  45. package/MerchantService/core/ApiRequestOptions.ts +12 -12
  46. package/MerchantService/core/BaseHttpRequest.ts +9 -9
  47. package/MerchantService/core/FetchHttpRequest.ts +21 -21
  48. package/MerchantService/core/OpenAPI.ts +55 -55
  49. package/MerchantService/core/request.ts +340 -340
  50. package/MerchantService/schemas.gen.ts +14764 -14764
  51. package/MerchantService/services.gen.ts +1602 -1602
  52. package/ProjectService/core/ApiRequestOptions.ts +12 -12
  53. package/ProjectService/core/BaseHttpRequest.ts +9 -9
  54. package/ProjectService/core/FetchHttpRequest.ts +21 -21
  55. package/ProjectService/core/OpenAPI.ts +55 -55
  56. package/ProjectService/core/request.ts +340 -340
  57. package/ProjectService.json +2937 -2937
  58. package/SaasService/core/ApiRequestOptions.ts +12 -12
  59. package/SaasService/core/BaseHttpRequest.ts +9 -9
  60. package/SaasService/core/FetchHttpRequest.ts +21 -21
  61. package/SaasService/core/OpenAPI.ts +55 -55
  62. package/SaasService/core/request.ts +340 -340
  63. package/TravellerService/TravellerServiceClient.ts +56 -56
  64. package/TravellerService/core/ApiError.ts +20 -20
  65. package/TravellerService/core/ApiRequestOptions.ts +12 -12
  66. package/TravellerService/core/ApiResult.ts +6 -6
  67. package/TravellerService/core/BaseHttpRequest.ts +9 -9
  68. package/TravellerService/core/CancelablePromise.ts +125 -125
  69. package/TravellerService/core/FetchHttpRequest.ts +21 -21
  70. package/TravellerService/core/OpenAPI.ts +55 -55
  71. package/TravellerService/core/request.ts +340 -340
  72. package/TravellerService/index.ts +8 -8
  73. package/TravellerService/schemas.gen.ts +6204 -6204
  74. package/TravellerService/services.gen.ts +695 -695
  75. package/TravellerService/types.gen.ts +1808 -1808
  76. package/generator.mjs +13 -4
  77. package/package.json +1 -1
  78. package/swagger.json +4794 -4794
package/generator.mjs CHANGED
@@ -47,32 +47,41 @@ var initial_api_list = [
47
47
  {
48
48
  input: "swagger-json/Setting",
49
49
  output: "Setting",
50
+ port: 44335,
50
51
  dereference: true,
51
52
  },
52
53
  {
53
54
  input: "swagger-json/CRM",
54
55
  output: "CRM",
56
+ port: 44335,
55
57
  dereference: true,
56
58
  },
57
59
  {
58
60
  input: "swagger-json/Contract",
59
61
  output: "Contract",
62
+ port: 44335,
60
63
  dereference: true,
61
64
  },
62
65
  {
63
66
  input: "swagger-json/Traveller",
64
67
  output: "Traveller",
68
+ port: 44335,
69
+ dereference: true,
70
+ },
71
+ {
72
+ input: "swagger-json/Location",
73
+ output: "Location",
65
74
  dereference: true,
66
75
  },
67
76
  ];
68
77
 
69
78
  function clean_URL(url) {
70
- return url.replace(/\/\//g,"/").replace(/:\//g,"://");
79
+ return url.replace(/\/\//g, "/").replace(/:\//g, "://");
71
80
  }
72
81
 
73
82
  function getCircularReplacer() {
74
83
  const ancestors = [];
75
- return function (key,value) {
84
+ return function (key, value) {
76
85
  if (typeof value !== "object" || value === null) {
77
86
  return value;
78
87
  }
@@ -104,7 +113,7 @@ async function generateApi(api_list) {
104
113
  temp_swagger = `temp_${api.output}_swagger.json`;
105
114
  fs.writeFileSync(
106
115
  temp_swagger,
107
- JSON.stringify(swaggerText,getCircularReplacer()),
116
+ JSON.stringify(swaggerText, getCircularReplacer()),
108
117
  );
109
118
 
110
119
  await createClient({
@@ -149,7 +158,7 @@ async function generateApi(api_list) {
149
158
  const args = process.argv.filter((val) => val.startsWith("--"));
150
159
  const isAll = args.filter((val) => val === "--all").length > 0;
151
160
  const hasFilter = args.filter((val) => val.startsWith("--filter")).length > 0;
152
- const knownArgs = ["--all","--filter"];
161
+ const knownArgs = ["--all", "--filter"];
153
162
  const unknownArgs = args.filter(
154
163
  (val) =>
155
164
  !knownArgs.includes(val) && !knownArgs.includes(val.split("=").at(0)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ayasofyazilim/saas",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "description": "Ayasofyazılım SAAS",
5
5
  "main": "generator.mjs",
6
6
  "bin": {