@plyaz/api 1.7.0 → 1.7.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/dist/api/client/clientEventManager.d.ts.map +1 -1
- package/dist/api/services/files/GET/downloadFile.d.ts.map +1 -1
- package/dist/api/services/files/GET/useDownloadFile.d.ts.map +1 -1
- package/dist/api/services/files/POST/generateDocument.d.ts.map +1 -1
- package/dist/api/services/files/POST/uploadFile.d.ts.map +1 -1
- package/dist/api/services/files/POST/uploadFiles.d.ts.map +1 -1
- package/dist/api/strategies/unified.d.ts.map +1 -1
- package/dist/entry-frontend.cjs +38 -23
- package/dist/entry-frontend.cjs.map +1 -1
- package/dist/entry-frontend.mjs +38 -23
- package/dist/entry-frontend.mjs.map +1 -1
- package/dist/index.cjs +38 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +38 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -16829,6 +16829,7 @@ var ClientEventManager = class _ClientEventManager {
|
|
|
16829
16829
|
/**
|
|
16830
16830
|
* Start monitoring
|
|
16831
16831
|
*/
|
|
16832
|
+
// eslint-disable-next-line complexity
|
|
16832
16833
|
startMonitoring() {
|
|
16833
16834
|
if (this.monitoringState.monitoring) return;
|
|
16834
16835
|
this.monitoringState.monitoring = true;
|
|
@@ -17235,6 +17236,24 @@ var unifiedStrategies = {
|
|
|
17235
17236
|
// Wait for network/resources
|
|
17236
17237
|
performance: "offline"
|
|
17237
17238
|
// Offline-first, maximum caching
|
|
17239
|
+
},
|
|
17240
|
+
/**
|
|
17241
|
+
* Mutation: POST/PUT/DELETE operations (uploads, creates, updates, deletes)
|
|
17242
|
+
* - NO caching (mutations should never be cached)
|
|
17243
|
+
* - Standard retry for actual failures
|
|
17244
|
+
* - NO polling (critical! - polling causes duplicate mutations)
|
|
17245
|
+
* - Realtime performance (immediate response)
|
|
17246
|
+
*
|
|
17247
|
+
* Use this for any data-modifying operation to prevent duplicate requests.
|
|
17248
|
+
*/
|
|
17249
|
+
mutation: {
|
|
17250
|
+
cache: "none",
|
|
17251
|
+
// Never cache mutations
|
|
17252
|
+
retry: "standard",
|
|
17253
|
+
// Standard retry for actual failures (not successes)
|
|
17254
|
+
// NO polling - this is critical! Polling would re-execute the mutation
|
|
17255
|
+
performance: "realtime"
|
|
17256
|
+
// Immediate response, no batching
|
|
17238
17257
|
}
|
|
17239
17258
|
};
|
|
17240
17259
|
function applyUnifiedStrategy(strategyName) {
|
|
@@ -25648,7 +25667,7 @@ __name(useCampaignParticipants, "useCampaignParticipants");
|
|
|
25648
25667
|
// src/api/services/campaigns/POST/createCampaign.ts
|
|
25649
25668
|
async function createCampaign(data, options) {
|
|
25650
25669
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
25651
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25670
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25652
25671
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25653
25672
|
const updateOptions = {
|
|
25654
25673
|
strategy: "temporary",
|
|
@@ -25672,7 +25691,7 @@ async function joinCampaign(campaignId, options) {
|
|
|
25672
25691
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25673
25692
|
);
|
|
25674
25693
|
}
|
|
25675
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25694
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25676
25695
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25677
25696
|
const updateOptions = {
|
|
25678
25697
|
strategy: "temporary",
|
|
@@ -25696,7 +25715,7 @@ async function leaveCampaign(campaignId, options) {
|
|
|
25696
25715
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25697
25716
|
);
|
|
25698
25717
|
}
|
|
25699
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25718
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25700
25719
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25701
25720
|
const updateOptions = {
|
|
25702
25721
|
strategy: "temporary",
|
|
@@ -25778,7 +25797,7 @@ async function updateCampaign(campaignId, data, options) {
|
|
|
25778
25797
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25779
25798
|
);
|
|
25780
25799
|
}
|
|
25781
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25800
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25782
25801
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25783
25802
|
const updateOptions = {
|
|
25784
25803
|
strategy: "temporary",
|
|
@@ -25823,7 +25842,7 @@ async function deleteCampaign(campaignId, options) {
|
|
|
25823
25842
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25824
25843
|
);
|
|
25825
25844
|
}
|
|
25826
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25845
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25827
25846
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25828
25847
|
const updateOptions = {
|
|
25829
25848
|
strategy: "temporary",
|
|
@@ -25909,7 +25928,7 @@ async function checkFeatureFlagEnabled(payload, options) {
|
|
|
25909
25928
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25910
25929
|
);
|
|
25911
25930
|
}
|
|
25912
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25931
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25913
25932
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25914
25933
|
const updateOptions = {
|
|
25915
25934
|
strategy: "temporary",
|
|
@@ -25934,7 +25953,7 @@ async function evaluateFeatureFlag(payload, options) {
|
|
|
25934
25953
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25935
25954
|
);
|
|
25936
25955
|
}
|
|
25937
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25956
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25938
25957
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25939
25958
|
const updateOptions = {
|
|
25940
25959
|
strategy: "temporary",
|
|
@@ -25971,7 +25990,7 @@ __name(evaluateAllFeatureFlags, "evaluateAllFeatureFlags");
|
|
|
25971
25990
|
// src/api/services/featureFlags/POST/createFeatureFlag.ts
|
|
25972
25991
|
async function createFeatureFlag(data, options) {
|
|
25973
25992
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
25974
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25993
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25975
25994
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25976
25995
|
const updateOptions = {
|
|
25977
25996
|
strategy: "temporary",
|
|
@@ -25995,7 +26014,7 @@ async function setFeatureFlagOverride(payload, options) {
|
|
|
25995
26014
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25996
26015
|
);
|
|
25997
26016
|
}
|
|
25998
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
26017
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25999
26018
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
26000
26019
|
const updateOptions = {
|
|
26001
26020
|
strategy: "temporary",
|
|
@@ -26014,7 +26033,7 @@ __name(setFeatureFlagOverride, "setFeatureFlagOverride");
|
|
|
26014
26033
|
// src/api/services/featureFlags/POST/refreshFeatureFlagCache.ts
|
|
26015
26034
|
async function refreshFeatureFlagCache(options) {
|
|
26016
26035
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
26017
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
26036
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
26018
26037
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
26019
26038
|
const updateOptions = {
|
|
26020
26039
|
strategy: "temporary",
|
|
@@ -26058,7 +26077,7 @@ async function updateFeatureFlag(payload, options) {
|
|
|
26058
26077
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
26059
26078
|
);
|
|
26060
26079
|
}
|
|
26061
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
26080
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
26062
26081
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
26063
26082
|
const updateOptions = {
|
|
26064
26083
|
strategy: "temporary",
|
|
@@ -26094,7 +26113,7 @@ async function deleteFeatureFlag(key, options) {
|
|
|
26094
26113
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
26095
26114
|
);
|
|
26096
26115
|
}
|
|
26097
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
26116
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
26098
26117
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
26099
26118
|
const updateOptions = {
|
|
26100
26119
|
strategy: "temporary",
|
|
@@ -26118,7 +26137,7 @@ async function removeFeatureFlagOverride(key, options) {
|
|
|
26118
26137
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
26119
26138
|
);
|
|
26120
26139
|
}
|
|
26121
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
26140
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
26122
26141
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
26123
26142
|
const updateOptions = {
|
|
26124
26143
|
strategy: "temporary",
|
|
@@ -26865,7 +26884,7 @@ async function downloadFile(request, options) {
|
|
|
26865
26884
|
);
|
|
26866
26885
|
}
|
|
26867
26886
|
const serviceDefaults = {
|
|
26868
|
-
unifiedStrategy: "
|
|
26887
|
+
unifiedStrategy: "mutation",
|
|
26869
26888
|
timeout: 6e4
|
|
26870
26889
|
// 60 seconds for downloads
|
|
26871
26890
|
};
|
|
@@ -26920,11 +26939,7 @@ __name(useGetFile, "useGetFile");
|
|
|
26920
26939
|
|
|
26921
26940
|
// src/api/services/files/GET/useDownloadFile.ts
|
|
26922
26941
|
function useDownloadFile(queryKey, request, serviceOptions, queryOptions) {
|
|
26923
|
-
return createApiQuery(downloadFile,
|
|
26924
|
-
apiConfig: {
|
|
26925
|
-
unifiedStrategy: "background"
|
|
26926
|
-
}
|
|
26927
|
-
})(queryKey, request, serviceOptions, queryOptions);
|
|
26942
|
+
return createApiQuery(downloadFile)(queryKey, request, serviceOptions, queryOptions);
|
|
26928
26943
|
}
|
|
26929
26944
|
__name(useDownloadFile, "useDownloadFile");
|
|
26930
26945
|
|
|
@@ -26942,7 +26957,7 @@ __name(useGetSignedUrl, "useGetSignedUrl");
|
|
|
26942
26957
|
async function uploadFile(data, options) {
|
|
26943
26958
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
26944
26959
|
const serviceDefaults = {
|
|
26945
|
-
unifiedStrategy: "
|
|
26960
|
+
unifiedStrategy: "mutation",
|
|
26946
26961
|
timeout: 6e4
|
|
26947
26962
|
// 60 seconds for uploads
|
|
26948
26963
|
};
|
|
@@ -26964,7 +26979,7 @@ __name(uploadFile, "uploadFile");
|
|
|
26964
26979
|
async function uploadFiles(data, options) {
|
|
26965
26980
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
26966
26981
|
const serviceDefaults = {
|
|
26967
|
-
unifiedStrategy: "
|
|
26982
|
+
unifiedStrategy: "mutation",
|
|
26968
26983
|
timeout: 12e4
|
|
26969
26984
|
// 2 minutes for bulk uploads
|
|
26970
26985
|
};
|
|
@@ -26986,7 +27001,7 @@ __name(uploadFiles, "uploadFiles");
|
|
|
26986
27001
|
async function generateDocument(data, options) {
|
|
26987
27002
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
26988
27003
|
const serviceDefaults = {
|
|
26989
|
-
unifiedStrategy: "
|
|
27004
|
+
unifiedStrategy: "mutation",
|
|
26990
27005
|
timeout: 3e4
|
|
26991
27006
|
// 30 seconds for document generation
|
|
26992
27007
|
};
|
|
@@ -27046,7 +27061,7 @@ async function deleteFile(request, options) {
|
|
|
27046
27061
|
API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
27047
27062
|
);
|
|
27048
27063
|
}
|
|
27049
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
27064
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
27050
27065
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
27051
27066
|
const updateOptions = {
|
|
27052
27067
|
strategy: "temporary",
|