@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.cjs
CHANGED
|
@@ -16845,6 +16845,7 @@ var ClientEventManager = class _ClientEventManager {
|
|
|
16845
16845
|
/**
|
|
16846
16846
|
* Start monitoring
|
|
16847
16847
|
*/
|
|
16848
|
+
// eslint-disable-next-line complexity
|
|
16848
16849
|
startMonitoring() {
|
|
16849
16850
|
if (this.monitoringState.monitoring) return;
|
|
16850
16851
|
this.monitoringState.monitoring = true;
|
|
@@ -17251,6 +17252,24 @@ var unifiedStrategies = {
|
|
|
17251
17252
|
// Wait for network/resources
|
|
17252
17253
|
performance: "offline"
|
|
17253
17254
|
// Offline-first, maximum caching
|
|
17255
|
+
},
|
|
17256
|
+
/**
|
|
17257
|
+
* Mutation: POST/PUT/DELETE operations (uploads, creates, updates, deletes)
|
|
17258
|
+
* - NO caching (mutations should never be cached)
|
|
17259
|
+
* - Standard retry for actual failures
|
|
17260
|
+
* - NO polling (critical! - polling causes duplicate mutations)
|
|
17261
|
+
* - Realtime performance (immediate response)
|
|
17262
|
+
*
|
|
17263
|
+
* Use this for any data-modifying operation to prevent duplicate requests.
|
|
17264
|
+
*/
|
|
17265
|
+
mutation: {
|
|
17266
|
+
cache: "none",
|
|
17267
|
+
// Never cache mutations
|
|
17268
|
+
retry: "standard",
|
|
17269
|
+
// Standard retry for actual failures (not successes)
|
|
17270
|
+
// NO polling - this is critical! Polling would re-execute the mutation
|
|
17271
|
+
performance: "realtime"
|
|
17272
|
+
// Immediate response, no batching
|
|
17254
17273
|
}
|
|
17255
17274
|
};
|
|
17256
17275
|
function applyUnifiedStrategy(strategyName) {
|
|
@@ -25664,7 +25683,7 @@ __name(useCampaignParticipants, "useCampaignParticipants");
|
|
|
25664
25683
|
// src/api/services/campaigns/POST/createCampaign.ts
|
|
25665
25684
|
async function createCampaign(data, options) {
|
|
25666
25685
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
25667
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25686
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25668
25687
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25669
25688
|
const updateOptions = {
|
|
25670
25689
|
strategy: "temporary",
|
|
@@ -25688,7 +25707,7 @@ async function joinCampaign(campaignId, options) {
|
|
|
25688
25707
|
api.API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25689
25708
|
);
|
|
25690
25709
|
}
|
|
25691
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25710
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25692
25711
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25693
25712
|
const updateOptions = {
|
|
25694
25713
|
strategy: "temporary",
|
|
@@ -25712,7 +25731,7 @@ async function leaveCampaign(campaignId, options) {
|
|
|
25712
25731
|
api.API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25713
25732
|
);
|
|
25714
25733
|
}
|
|
25715
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25734
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25716
25735
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25717
25736
|
const updateOptions = {
|
|
25718
25737
|
strategy: "temporary",
|
|
@@ -25794,7 +25813,7 @@ async function updateCampaign(campaignId, data, options) {
|
|
|
25794
25813
|
api.API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25795
25814
|
);
|
|
25796
25815
|
}
|
|
25797
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25816
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25798
25817
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25799
25818
|
const updateOptions = {
|
|
25800
25819
|
strategy: "temporary",
|
|
@@ -25839,7 +25858,7 @@ async function deleteCampaign(campaignId, options) {
|
|
|
25839
25858
|
api.API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25840
25859
|
);
|
|
25841
25860
|
}
|
|
25842
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25861
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25843
25862
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25844
25863
|
const updateOptions = {
|
|
25845
25864
|
strategy: "temporary",
|
|
@@ -25925,7 +25944,7 @@ async function checkFeatureFlagEnabled(payload, options) {
|
|
|
25925
25944
|
api.API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25926
25945
|
);
|
|
25927
25946
|
}
|
|
25928
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25947
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25929
25948
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25930
25949
|
const updateOptions = {
|
|
25931
25950
|
strategy: "temporary",
|
|
@@ -25950,7 +25969,7 @@ async function evaluateFeatureFlag(payload, options) {
|
|
|
25950
25969
|
api.API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
25951
25970
|
);
|
|
25952
25971
|
}
|
|
25953
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
25972
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25954
25973
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25955
25974
|
const updateOptions = {
|
|
25956
25975
|
strategy: "temporary",
|
|
@@ -25987,7 +26006,7 @@ __name(evaluateAllFeatureFlags, "evaluateAllFeatureFlags");
|
|
|
25987
26006
|
// src/api/services/featureFlags/POST/createFeatureFlag.ts
|
|
25988
26007
|
async function createFeatureFlag(data, options) {
|
|
25989
26008
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
25990
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
26009
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
25991
26010
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
25992
26011
|
const updateOptions = {
|
|
25993
26012
|
strategy: "temporary",
|
|
@@ -26011,7 +26030,7 @@ async function setFeatureFlagOverride(payload, options) {
|
|
|
26011
26030
|
api.API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
26012
26031
|
);
|
|
26013
26032
|
}
|
|
26014
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
26033
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
26015
26034
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
26016
26035
|
const updateOptions = {
|
|
26017
26036
|
strategy: "temporary",
|
|
@@ -26030,7 +26049,7 @@ __name(setFeatureFlagOverride, "setFeatureFlagOverride");
|
|
|
26030
26049
|
// src/api/services/featureFlags/POST/refreshFeatureFlagCache.ts
|
|
26031
26050
|
async function refreshFeatureFlagCache(options) {
|
|
26032
26051
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
26033
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
26052
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
26034
26053
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
26035
26054
|
const updateOptions = {
|
|
26036
26055
|
strategy: "temporary",
|
|
@@ -26074,7 +26093,7 @@ async function updateFeatureFlag(payload, options) {
|
|
|
26074
26093
|
api.API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
26075
26094
|
);
|
|
26076
26095
|
}
|
|
26077
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
26096
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
26078
26097
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
26079
26098
|
const updateOptions = {
|
|
26080
26099
|
strategy: "temporary",
|
|
@@ -26110,7 +26129,7 @@ async function deleteFeatureFlag(key, options) {
|
|
|
26110
26129
|
api.API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
26111
26130
|
);
|
|
26112
26131
|
}
|
|
26113
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
26132
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
26114
26133
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
26115
26134
|
const updateOptions = {
|
|
26116
26135
|
strategy: "temporary",
|
|
@@ -26134,7 +26153,7 @@ async function removeFeatureFlagOverride(key, options) {
|
|
|
26134
26153
|
api.API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
26135
26154
|
);
|
|
26136
26155
|
}
|
|
26137
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
26156
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
26138
26157
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
26139
26158
|
const updateOptions = {
|
|
26140
26159
|
strategy: "temporary",
|
|
@@ -26881,7 +26900,7 @@ async function downloadFile(request, options) {
|
|
|
26881
26900
|
);
|
|
26882
26901
|
}
|
|
26883
26902
|
const serviceDefaults = {
|
|
26884
|
-
unifiedStrategy: "
|
|
26903
|
+
unifiedStrategy: "mutation",
|
|
26885
26904
|
timeout: 6e4
|
|
26886
26905
|
// 60 seconds for downloads
|
|
26887
26906
|
};
|
|
@@ -26936,11 +26955,7 @@ __name(useGetFile, "useGetFile");
|
|
|
26936
26955
|
|
|
26937
26956
|
// src/api/services/files/GET/useDownloadFile.ts
|
|
26938
26957
|
function useDownloadFile(queryKey, request, serviceOptions, queryOptions) {
|
|
26939
|
-
return createApiQuery(downloadFile,
|
|
26940
|
-
apiConfig: {
|
|
26941
|
-
unifiedStrategy: "background"
|
|
26942
|
-
}
|
|
26943
|
-
})(queryKey, request, serviceOptions, queryOptions);
|
|
26958
|
+
return createApiQuery(downloadFile)(queryKey, request, serviceOptions, queryOptions);
|
|
26944
26959
|
}
|
|
26945
26960
|
__name(useDownloadFile, "useDownloadFile");
|
|
26946
26961
|
|
|
@@ -26958,7 +26973,7 @@ __name(useGetSignedUrl, "useGetSignedUrl");
|
|
|
26958
26973
|
async function uploadFile(data, options) {
|
|
26959
26974
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
26960
26975
|
const serviceDefaults = {
|
|
26961
|
-
unifiedStrategy: "
|
|
26976
|
+
unifiedStrategy: "mutation",
|
|
26962
26977
|
timeout: 6e4
|
|
26963
26978
|
// 60 seconds for uploads
|
|
26964
26979
|
};
|
|
@@ -26980,7 +26995,7 @@ __name(uploadFile, "uploadFile");
|
|
|
26980
26995
|
async function uploadFiles(data, options) {
|
|
26981
26996
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
26982
26997
|
const serviceDefaults = {
|
|
26983
|
-
unifiedStrategy: "
|
|
26998
|
+
unifiedStrategy: "mutation",
|
|
26984
26999
|
timeout: 12e4
|
|
26985
27000
|
// 2 minutes for bulk uploads
|
|
26986
27001
|
};
|
|
@@ -27002,7 +27017,7 @@ __name(uploadFiles, "uploadFiles");
|
|
|
27002
27017
|
async function generateDocument(data, options) {
|
|
27003
27018
|
const client = options?.apiClient ?? getDefaultApiClient();
|
|
27004
27019
|
const serviceDefaults = {
|
|
27005
|
-
unifiedStrategy: "
|
|
27020
|
+
unifiedStrategy: "mutation",
|
|
27006
27021
|
timeout: 3e4
|
|
27007
27022
|
// 30 seconds for document generation
|
|
27008
27023
|
};
|
|
@@ -27062,7 +27077,7 @@ async function deleteFile(request, options) {
|
|
|
27062
27077
|
api.API_ERROR_CODES.REQUIRED_FIELD_MISSING
|
|
27063
27078
|
);
|
|
27064
27079
|
}
|
|
27065
|
-
const serviceDefaults = { unifiedStrategy: "
|
|
27080
|
+
const serviceDefaults = { unifiedStrategy: "mutation" };
|
|
27066
27081
|
const mergedConfig = mergeConfigs(serviceDefaults, options?.apiConfig ?? {});
|
|
27067
27082
|
const updateOptions = {
|
|
27068
27083
|
strategy: "temporary",
|