@timardex/cluemart-shared 1.5.813 → 1.5.822

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 (88) hide show
  1. package/dist/{ad-0muFV6oH.d.ts → ad-BFGA6SrQ.d.ts} +4 -123
  2. package/dist/{ad-Dlk9SFLw.d.mts → ad-BRC6KNgv.d.mts} +4 -123
  3. package/dist/apollo/index.cjs +1362 -0
  4. package/dist/apollo/index.cjs.map +1 -0
  5. package/dist/apollo/index.d.mts +337 -0
  6. package/dist/apollo/index.d.ts +337 -0
  7. package/dist/apollo/index.mjs +1273 -0
  8. package/dist/apollo/index.mjs.map +1 -0
  9. package/dist/auth/index.cjs +1425 -0
  10. package/dist/auth/index.cjs.map +1 -0
  11. package/dist/auth/index.d.mts +119 -0
  12. package/dist/auth/index.d.ts +119 -0
  13. package/dist/auth/index.mjs +317 -0
  14. package/dist/auth/index.mjs.map +1 -0
  15. package/dist/{chunk-LETM2YHF.mjs → chunk-D33VEY7Q.mjs} +3 -1
  16. package/dist/chunk-D33VEY7Q.mjs.map +1 -0
  17. package/dist/chunk-DQ7ZHIXW.mjs +26 -0
  18. package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
  19. package/dist/{chunk-LKMJ75YV.mjs → chunk-EUOLQ7SS.mjs} +2 -2
  20. package/dist/{chunk-GJO7X2Y4.mjs → chunk-IREUJYMR.mjs} +3 -3
  21. package/dist/{chunk-POXARN2X.mjs → chunk-KMLUQVNM.mjs} +1 -24
  22. package/dist/chunk-KMLUQVNM.mjs.map +1 -0
  23. package/dist/chunk-MIDSLTUJ.mjs +1214 -0
  24. package/dist/chunk-MIDSLTUJ.mjs.map +1 -0
  25. package/dist/{chunk-DLPDX4EH.mjs → chunk-N7KENXCS.mjs} +10 -49
  26. package/dist/chunk-N7KENXCS.mjs.map +1 -0
  27. package/dist/chunk-RAYUJODN.mjs +45 -0
  28. package/dist/chunk-RAYUJODN.mjs.map +1 -0
  29. package/dist/{chunk-4TP57ZL7.mjs → chunk-UHDYJBIX.mjs} +2 -2
  30. package/dist/{chunk-4ICKZHQA.mjs → chunk-WZPKYUSX.mjs} +361 -2328
  31. package/dist/chunk-WZPKYUSX.mjs.map +1 -0
  32. package/dist/{contactUs-CiXFYse5.d.ts → contactUs-Bwxzw-cB.d.ts} +1 -1
  33. package/dist/{contactUs-HPydW6BR.d.mts → contactUs-b5SfvqmJ.d.mts} +1 -1
  34. package/dist/enums/index.cjs +2 -0
  35. package/dist/enums/index.cjs.map +1 -1
  36. package/dist/enums/index.d.mts +3 -1
  37. package/dist/enums/index.d.ts +3 -1
  38. package/dist/enums/index.mjs +1 -1
  39. package/dist/formFields/index.cjs.map +1 -1
  40. package/dist/formFields/index.d.mts +1 -1
  41. package/dist/formFields/index.d.ts +1 -1
  42. package/dist/formFields/index.mjs +7 -5
  43. package/dist/{global-Dq6A7pNV.d.mts → global-959zf6qy.d.mts} +1 -1
  44. package/dist/{global-B2jacmZB.d.ts → global-wVC9VaCx.d.ts} +1 -1
  45. package/dist/graphql/index.cjs +2 -844
  46. package/dist/graphql/index.cjs.map +1 -1
  47. package/dist/graphql/index.d.mts +4 -3
  48. package/dist/graphql/index.d.ts +4 -3
  49. package/dist/graphql/index.mjs +23 -21
  50. package/dist/hooks/index.cjs +5 -0
  51. package/dist/hooks/index.cjs.map +1 -1
  52. package/dist/hooks/index.d.mts +4 -3
  53. package/dist/hooks/index.d.ts +4 -3
  54. package/dist/hooks/index.mjs +15 -12
  55. package/dist/hooks/index.mjs.map +1 -1
  56. package/dist/index.cjs +4 -844
  57. package/dist/index.cjs.map +1 -1
  58. package/dist/index.d.mts +3 -1
  59. package/dist/index.d.ts +3 -1
  60. package/dist/index.mjs +3 -843
  61. package/dist/index.mjs.map +1 -1
  62. package/dist/map/index.d.mts +1 -1
  63. package/dist/map/index.d.ts +1 -1
  64. package/dist/{resourceActivities-DUR5JaaB.d.ts → resourceActivities-ChZcl5wJ.d.ts} +1 -1
  65. package/dist/{resourceActivities-BCZ6HU7U.d.mts → resourceActivities-ZPT9JlfH.d.mts} +1 -1
  66. package/dist/sharing/index.cjs.map +1 -1
  67. package/dist/sharing/index.d.mts +1 -1
  68. package/dist/sharing/index.d.ts +1 -1
  69. package/dist/sharing/index.mjs +3 -3
  70. package/dist/subscription-BU8GvH2K.d.ts +12 -0
  71. package/dist/subscription-bmAdrnfi.d.mts +12 -0
  72. package/dist/types/index.d.mts +9 -16
  73. package/dist/types/index.d.ts +9 -16
  74. package/dist/types/index.mjs +7 -5
  75. package/dist/user-CCN2IPDV.d.ts +124 -0
  76. package/dist/user-CadKvubI.d.mts +124 -0
  77. package/dist/utils/index.cjs.map +1 -1
  78. package/dist/utils/index.d.mts +1 -1
  79. package/dist/utils/index.d.ts +1 -1
  80. package/dist/utils/index.mjs +8 -5
  81. package/package.json +25 -9
  82. package/dist/chunk-4ICKZHQA.mjs.map +0 -1
  83. package/dist/chunk-DLPDX4EH.mjs.map +0 -1
  84. package/dist/chunk-LETM2YHF.mjs.map +0 -1
  85. package/dist/chunk-POXARN2X.mjs.map +0 -1
  86. /package/dist/{chunk-LKMJ75YV.mjs.map → chunk-EUOLQ7SS.mjs.map} +0 -0
  87. /package/dist/{chunk-GJO7X2Y4.mjs.map → chunk-IREUJYMR.mjs.map} +0 -0
  88. /package/dist/{chunk-4TP57ZL7.mjs.map → chunk-UHDYJBIX.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -658,11 +658,13 @@ var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence2) => {
658
658
  })(EnumUserLicence || {});
659
659
  var EnumUserRole = /* @__PURE__ */ ((EnumUserRole2) => {
660
660
  EnumUserRole2["ADMIN"] = "admin";
661
+ EnumUserRole2["SUPER_ADMIN"] = "super_admin";
661
662
  EnumUserRole2["CUSTOMER"] = "customer";
662
663
  EnumUserRole2["MARKETING"] = "marketing";
663
664
  EnumUserRole2["MODERATOR"] = "moderator";
664
665
  EnumUserRole2["SUPPORT"] = "support";
665
666
  EnumUserRole2["AFFILIATE"] = "affiliate";
667
+ EnumUserRole2["SCHOOL"] = "school";
666
668
  return EnumUserRole2;
667
669
  })(EnumUserRole || {});
668
670
  var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
@@ -4861,852 +4863,10 @@ var GET_RESOURCE_CONNECTIONS = import_client9.gql`
4861
4863
  ${EVENT_LIST_ITEM}
4862
4864
  `;
4863
4865
 
4864
- // node_modules/graphql/jsutils/devAssert.mjs
4865
- function devAssert(condition, message) {
4866
- const booleanCondition = Boolean(condition);
4867
- if (!booleanCondition) {
4868
- throw new Error(message);
4869
- }
4870
- }
4871
-
4872
- // node_modules/graphql/language/ast.mjs
4873
- var QueryDocumentKeys = {
4874
- Name: [],
4875
- Document: ["definitions"],
4876
- OperationDefinition: [
4877
- "description",
4878
- "name",
4879
- "variableDefinitions",
4880
- "directives",
4881
- "selectionSet"
4882
- ],
4883
- VariableDefinition: [
4884
- "description",
4885
- "variable",
4886
- "type",
4887
- "defaultValue",
4888
- "directives"
4889
- ],
4890
- Variable: ["name"],
4891
- SelectionSet: ["selections"],
4892
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
4893
- Argument: ["name", "value"],
4894
- FragmentSpread: ["name", "directives"],
4895
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
4896
- FragmentDefinition: [
4897
- "description",
4898
- "name",
4899
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
4900
- "variableDefinitions",
4901
- "typeCondition",
4902
- "directives",
4903
- "selectionSet"
4904
- ],
4905
- IntValue: [],
4906
- FloatValue: [],
4907
- StringValue: [],
4908
- BooleanValue: [],
4909
- NullValue: [],
4910
- EnumValue: [],
4911
- ListValue: ["values"],
4912
- ObjectValue: ["fields"],
4913
- ObjectField: ["name", "value"],
4914
- Directive: ["name", "arguments"],
4915
- NamedType: ["name"],
4916
- ListType: ["type"],
4917
- NonNullType: ["type"],
4918
- SchemaDefinition: ["description", "directives", "operationTypes"],
4919
- OperationTypeDefinition: ["type"],
4920
- ScalarTypeDefinition: ["description", "name", "directives"],
4921
- ObjectTypeDefinition: [
4922
- "description",
4923
- "name",
4924
- "interfaces",
4925
- "directives",
4926
- "fields"
4927
- ],
4928
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
4929
- InputValueDefinition: [
4930
- "description",
4931
- "name",
4932
- "type",
4933
- "defaultValue",
4934
- "directives"
4935
- ],
4936
- InterfaceTypeDefinition: [
4937
- "description",
4938
- "name",
4939
- "interfaces",
4940
- "directives",
4941
- "fields"
4942
- ],
4943
- UnionTypeDefinition: ["description", "name", "directives", "types"],
4944
- EnumTypeDefinition: ["description", "name", "directives", "values"],
4945
- EnumValueDefinition: ["description", "name", "directives"],
4946
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
4947
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
4948
- SchemaExtension: ["directives", "operationTypes"],
4949
- ScalarTypeExtension: ["name", "directives"],
4950
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
4951
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
4952
- UnionTypeExtension: ["name", "directives", "types"],
4953
- EnumTypeExtension: ["name", "directives", "values"],
4954
- InputObjectTypeExtension: ["name", "directives", "fields"],
4955
- TypeCoordinate: ["name"],
4956
- MemberCoordinate: ["name", "memberName"],
4957
- ArgumentCoordinate: ["name", "fieldName", "argumentName"],
4958
- DirectiveCoordinate: ["name"],
4959
- DirectiveArgumentCoordinate: ["name", "argumentName"]
4960
- };
4961
- var kindValues = new Set(Object.keys(QueryDocumentKeys));
4962
- function isNode(maybeNode) {
4963
- const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
4964
- return typeof maybeKind === "string" && kindValues.has(maybeKind);
4965
- }
4966
- var OperationTypeNode;
4967
- (function(OperationTypeNode2) {
4968
- OperationTypeNode2["QUERY"] = "query";
4969
- OperationTypeNode2["MUTATION"] = "mutation";
4970
- OperationTypeNode2["SUBSCRIPTION"] = "subscription";
4971
- })(OperationTypeNode || (OperationTypeNode = {}));
4972
-
4973
- // node_modules/graphql/language/kinds.mjs
4974
- var Kind;
4975
- (function(Kind2) {
4976
- Kind2["NAME"] = "Name";
4977
- Kind2["DOCUMENT"] = "Document";
4978
- Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
4979
- Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
4980
- Kind2["SELECTION_SET"] = "SelectionSet";
4981
- Kind2["FIELD"] = "Field";
4982
- Kind2["ARGUMENT"] = "Argument";
4983
- Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
4984
- Kind2["INLINE_FRAGMENT"] = "InlineFragment";
4985
- Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
4986
- Kind2["VARIABLE"] = "Variable";
4987
- Kind2["INT"] = "IntValue";
4988
- Kind2["FLOAT"] = "FloatValue";
4989
- Kind2["STRING"] = "StringValue";
4990
- Kind2["BOOLEAN"] = "BooleanValue";
4991
- Kind2["NULL"] = "NullValue";
4992
- Kind2["ENUM"] = "EnumValue";
4993
- Kind2["LIST"] = "ListValue";
4994
- Kind2["OBJECT"] = "ObjectValue";
4995
- Kind2["OBJECT_FIELD"] = "ObjectField";
4996
- Kind2["DIRECTIVE"] = "Directive";
4997
- Kind2["NAMED_TYPE"] = "NamedType";
4998
- Kind2["LIST_TYPE"] = "ListType";
4999
- Kind2["NON_NULL_TYPE"] = "NonNullType";
5000
- Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
5001
- Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
5002
- Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
5003
- Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
5004
- Kind2["FIELD_DEFINITION"] = "FieldDefinition";
5005
- Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
5006
- Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
5007
- Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
5008
- Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
5009
- Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
5010
- Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
5011
- Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
5012
- Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
5013
- Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
5014
- Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
5015
- Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
5016
- Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
5017
- Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
5018
- Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
5019
- Kind2["TYPE_COORDINATE"] = "TypeCoordinate";
5020
- Kind2["MEMBER_COORDINATE"] = "MemberCoordinate";
5021
- Kind2["ARGUMENT_COORDINATE"] = "ArgumentCoordinate";
5022
- Kind2["DIRECTIVE_COORDINATE"] = "DirectiveCoordinate";
5023
- Kind2["DIRECTIVE_ARGUMENT_COORDINATE"] = "DirectiveArgumentCoordinate";
5024
- })(Kind || (Kind = {}));
5025
-
5026
- // node_modules/graphql/language/characterClasses.mjs
5027
- function isWhiteSpace(code) {
5028
- return code === 9 || code === 32;
5029
- }
5030
-
5031
- // node_modules/graphql/language/blockString.mjs
5032
- function printBlockString(value, options) {
5033
- const escapedValue = value.replace(/"""/g, '\\"""');
5034
- const lines = escapedValue.split(/\r\n|[\n\r]/g);
5035
- const isSingleLine = lines.length === 1;
5036
- const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
5037
- const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
5038
- const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
5039
- const hasTrailingSlash = value.endsWith("\\");
5040
- const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
5041
- const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
5042
- (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
5043
- let result = "";
5044
- const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
5045
- if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
5046
- result += "\n";
5047
- }
5048
- result += escapedValue;
5049
- if (printAsMultipleLines || forceTrailingNewline) {
5050
- result += "\n";
5051
- }
5052
- return '"""' + result + '"""';
5053
- }
5054
-
5055
- // node_modules/graphql/jsutils/inspect.mjs
5056
- var MAX_ARRAY_LENGTH = 10;
5057
- var MAX_RECURSIVE_DEPTH = 2;
5058
- function inspect(value) {
5059
- return formatValue(value, []);
5060
- }
5061
- function formatValue(value, seenValues) {
5062
- switch (typeof value) {
5063
- case "string":
5064
- return JSON.stringify(value);
5065
- case "function":
5066
- return value.name ? `[function ${value.name}]` : "[function]";
5067
- case "object":
5068
- return formatObjectValue(value, seenValues);
5069
- default:
5070
- return String(value);
5071
- }
5072
- }
5073
- function formatObjectValue(value, previouslySeenValues) {
5074
- if (value === null) {
5075
- return "null";
5076
- }
5077
- if (previouslySeenValues.includes(value)) {
5078
- return "[Circular]";
5079
- }
5080
- const seenValues = [...previouslySeenValues, value];
5081
- if (isJSONable(value)) {
5082
- const jsonValue = value.toJSON();
5083
- if (jsonValue !== value) {
5084
- return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
5085
- }
5086
- } else if (Array.isArray(value)) {
5087
- return formatArray(value, seenValues);
5088
- }
5089
- return formatObject(value, seenValues);
5090
- }
5091
- function isJSONable(value) {
5092
- return typeof value.toJSON === "function";
5093
- }
5094
- function formatObject(object, seenValues) {
5095
- const entries = Object.entries(object);
5096
- if (entries.length === 0) {
5097
- return "{}";
5098
- }
5099
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
5100
- return "[" + getObjectTag(object) + "]";
5101
- }
5102
- const properties = entries.map(
5103
- ([key, value]) => key + ": " + formatValue(value, seenValues)
5104
- );
5105
- return "{ " + properties.join(", ") + " }";
5106
- }
5107
- function formatArray(array, seenValues) {
5108
- if (array.length === 0) {
5109
- return "[]";
5110
- }
5111
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
5112
- return "[Array]";
5113
- }
5114
- const len = Math.min(MAX_ARRAY_LENGTH, array.length);
5115
- const remaining = array.length - len;
5116
- const items = [];
5117
- for (let i = 0; i < len; ++i) {
5118
- items.push(formatValue(array[i], seenValues));
5119
- }
5120
- if (remaining === 1) {
5121
- items.push("... 1 more item");
5122
- } else if (remaining > 1) {
5123
- items.push(`... ${remaining} more items`);
5124
- }
5125
- return "[" + items.join(", ") + "]";
5126
- }
5127
- function getObjectTag(object) {
5128
- const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
5129
- if (tag === "Object" && typeof object.constructor === "function") {
5130
- const name = object.constructor.name;
5131
- if (typeof name === "string" && name !== "") {
5132
- return name;
5133
- }
5134
- }
5135
- return tag;
5136
- }
5137
-
5138
- // node_modules/graphql/language/printString.mjs
5139
- function printString(str) {
5140
- return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
5141
- }
5142
- var escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
5143
- function escapedReplacer(str) {
5144
- return escapeSequences[str.charCodeAt(0)];
5145
- }
5146
- var escapeSequences = [
5147
- "\\u0000",
5148
- "\\u0001",
5149
- "\\u0002",
5150
- "\\u0003",
5151
- "\\u0004",
5152
- "\\u0005",
5153
- "\\u0006",
5154
- "\\u0007",
5155
- "\\b",
5156
- "\\t",
5157
- "\\n",
5158
- "\\u000B",
5159
- "\\f",
5160
- "\\r",
5161
- "\\u000E",
5162
- "\\u000F",
5163
- "\\u0010",
5164
- "\\u0011",
5165
- "\\u0012",
5166
- "\\u0013",
5167
- "\\u0014",
5168
- "\\u0015",
5169
- "\\u0016",
5170
- "\\u0017",
5171
- "\\u0018",
5172
- "\\u0019",
5173
- "\\u001A",
5174
- "\\u001B",
5175
- "\\u001C",
5176
- "\\u001D",
5177
- "\\u001E",
5178
- "\\u001F",
5179
- "",
5180
- "",
5181
- '\\"',
5182
- "",
5183
- "",
5184
- "",
5185
- "",
5186
- "",
5187
- "",
5188
- "",
5189
- "",
5190
- "",
5191
- "",
5192
- "",
5193
- "",
5194
- "",
5195
- // 2F
5196
- "",
5197
- "",
5198
- "",
5199
- "",
5200
- "",
5201
- "",
5202
- "",
5203
- "",
5204
- "",
5205
- "",
5206
- "",
5207
- "",
5208
- "",
5209
- "",
5210
- "",
5211
- "",
5212
- // 3F
5213
- "",
5214
- "",
5215
- "",
5216
- "",
5217
- "",
5218
- "",
5219
- "",
5220
- "",
5221
- "",
5222
- "",
5223
- "",
5224
- "",
5225
- "",
5226
- "",
5227
- "",
5228
- "",
5229
- // 4F
5230
- "",
5231
- "",
5232
- "",
5233
- "",
5234
- "",
5235
- "",
5236
- "",
5237
- "",
5238
- "",
5239
- "",
5240
- "",
5241
- "",
5242
- "\\\\",
5243
- "",
5244
- "",
5245
- "",
5246
- // 5F
5247
- "",
5248
- "",
5249
- "",
5250
- "",
5251
- "",
5252
- "",
5253
- "",
5254
- "",
5255
- "",
5256
- "",
5257
- "",
5258
- "",
5259
- "",
5260
- "",
5261
- "",
5262
- "",
5263
- // 6F
5264
- "",
5265
- "",
5266
- "",
5267
- "",
5268
- "",
5269
- "",
5270
- "",
5271
- "",
5272
- "",
5273
- "",
5274
- "",
5275
- "",
5276
- "",
5277
- "",
5278
- "",
5279
- "\\u007F",
5280
- "\\u0080",
5281
- "\\u0081",
5282
- "\\u0082",
5283
- "\\u0083",
5284
- "\\u0084",
5285
- "\\u0085",
5286
- "\\u0086",
5287
- "\\u0087",
5288
- "\\u0088",
5289
- "\\u0089",
5290
- "\\u008A",
5291
- "\\u008B",
5292
- "\\u008C",
5293
- "\\u008D",
5294
- "\\u008E",
5295
- "\\u008F",
5296
- "\\u0090",
5297
- "\\u0091",
5298
- "\\u0092",
5299
- "\\u0093",
5300
- "\\u0094",
5301
- "\\u0095",
5302
- "\\u0096",
5303
- "\\u0097",
5304
- "\\u0098",
5305
- "\\u0099",
5306
- "\\u009A",
5307
- "\\u009B",
5308
- "\\u009C",
5309
- "\\u009D",
5310
- "\\u009E",
5311
- "\\u009F"
5312
- ];
5313
-
5314
- // node_modules/graphql/language/visitor.mjs
5315
- var BREAK = Object.freeze({});
5316
- function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
5317
- const enterLeaveMap = /* @__PURE__ */ new Map();
5318
- for (const kind of Object.values(Kind)) {
5319
- enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
5320
- }
5321
- let stack = void 0;
5322
- let inArray = Array.isArray(root);
5323
- let keys = [root];
5324
- let index = -1;
5325
- let edits = [];
5326
- let node = root;
5327
- let key = void 0;
5328
- let parent = void 0;
5329
- const path = [];
5330
- const ancestors = [];
5331
- do {
5332
- index++;
5333
- const isLeaving = index === keys.length;
5334
- const isEdited = isLeaving && edits.length !== 0;
5335
- if (isLeaving) {
5336
- key = ancestors.length === 0 ? void 0 : path[path.length - 1];
5337
- node = parent;
5338
- parent = ancestors.pop();
5339
- if (isEdited) {
5340
- if (inArray) {
5341
- node = node.slice();
5342
- let editOffset = 0;
5343
- for (const [editKey, editValue] of edits) {
5344
- const arrayKey = editKey - editOffset;
5345
- if (editValue === null) {
5346
- node.splice(arrayKey, 1);
5347
- editOffset++;
5348
- } else {
5349
- node[arrayKey] = editValue;
5350
- }
5351
- }
5352
- } else {
5353
- node = { ...node };
5354
- for (const [editKey, editValue] of edits) {
5355
- node[editKey] = editValue;
5356
- }
5357
- }
5358
- }
5359
- index = stack.index;
5360
- keys = stack.keys;
5361
- edits = stack.edits;
5362
- inArray = stack.inArray;
5363
- stack = stack.prev;
5364
- } else if (parent) {
5365
- key = inArray ? index : keys[index];
5366
- node = parent[key];
5367
- if (node === null || node === void 0) {
5368
- continue;
5369
- }
5370
- path.push(key);
5371
- }
5372
- let result;
5373
- if (!Array.isArray(node)) {
5374
- var _enterLeaveMap$get, _enterLeaveMap$get2;
5375
- isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
5376
- const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
5377
- result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
5378
- if (result === BREAK) {
5379
- break;
5380
- }
5381
- if (result === false) {
5382
- if (!isLeaving) {
5383
- path.pop();
5384
- continue;
5385
- }
5386
- } else if (result !== void 0) {
5387
- edits.push([key, result]);
5388
- if (!isLeaving) {
5389
- if (isNode(result)) {
5390
- node = result;
5391
- } else {
5392
- path.pop();
5393
- continue;
5394
- }
5395
- }
5396
- }
5397
- }
5398
- if (result === void 0 && isEdited) {
5399
- edits.push([key, node]);
5400
- }
5401
- if (isLeaving) {
5402
- path.pop();
5403
- } else {
5404
- var _node$kind;
5405
- stack = {
5406
- inArray,
5407
- index,
5408
- keys,
5409
- edits,
5410
- prev: stack
5411
- };
5412
- inArray = Array.isArray(node);
5413
- keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
5414
- index = -1;
5415
- edits = [];
5416
- if (parent) {
5417
- ancestors.push(parent);
5418
- }
5419
- parent = node;
5420
- }
5421
- } while (stack !== void 0);
5422
- if (edits.length !== 0) {
5423
- return edits[edits.length - 1][1];
5424
- }
5425
- return root;
5426
- }
5427
- function getEnterLeaveForKind(visitor, kind) {
5428
- const kindVisitor = visitor[kind];
5429
- if (typeof kindVisitor === "object") {
5430
- return kindVisitor;
5431
- } else if (typeof kindVisitor === "function") {
5432
- return {
5433
- enter: kindVisitor,
5434
- leave: void 0
5435
- };
5436
- }
5437
- return {
5438
- enter: visitor.enter,
5439
- leave: visitor.leave
5440
- };
5441
- }
5442
-
5443
- // node_modules/graphql/language/printer.mjs
5444
- function print(ast) {
5445
- return visit(ast, printDocASTReducer);
5446
- }
5447
- var MAX_LINE_LENGTH = 80;
5448
- var printDocASTReducer = {
5449
- Name: {
5450
- leave: (node) => node.value
5451
- },
5452
- Variable: {
5453
- leave: (node) => "$" + node.name
5454
- },
5455
- // Document
5456
- Document: {
5457
- leave: (node) => join(node.definitions, "\n\n")
5458
- },
5459
- OperationDefinition: {
5460
- leave(node) {
5461
- const varDefs = hasMultilineItems(node.variableDefinitions) ? wrap("(\n", join(node.variableDefinitions, "\n"), "\n)") : wrap("(", join(node.variableDefinitions, ", "), ")");
5462
- const prefix = wrap("", node.description, "\n") + join(
5463
- [
5464
- node.operation,
5465
- join([node.name, varDefs]),
5466
- join(node.directives, " ")
5467
- ],
5468
- " "
5469
- );
5470
- return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
5471
- }
5472
- },
5473
- VariableDefinition: {
5474
- leave: ({ variable, type, defaultValue, directives, description }) => wrap("", description, "\n") + variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " "))
5475
- },
5476
- SelectionSet: {
5477
- leave: ({ selections }) => block(selections)
5478
- },
5479
- Field: {
5480
- leave({ alias, name, arguments: args, directives, selectionSet }) {
5481
- const prefix = wrap("", alias, ": ") + name;
5482
- let argsLine = prefix + wrap("(", join(args, ", "), ")");
5483
- if (argsLine.length > MAX_LINE_LENGTH) {
5484
- argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
5485
- }
5486
- return join([argsLine, join(directives, " "), selectionSet], " ");
5487
- }
5488
- },
5489
- Argument: {
5490
- leave: ({ name, value }) => name + ": " + value
5491
- },
5492
- // Fragments
5493
- FragmentSpread: {
5494
- leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " "))
5495
- },
5496
- InlineFragment: {
5497
- leave: ({ typeCondition, directives, selectionSet }) => join(
5498
- [
5499
- "...",
5500
- wrap("on ", typeCondition),
5501
- join(directives, " "),
5502
- selectionSet
5503
- ],
5504
- " "
5505
- )
5506
- },
5507
- FragmentDefinition: {
5508
- leave: ({
5509
- name,
5510
- typeCondition,
5511
- variableDefinitions,
5512
- directives,
5513
- selectionSet,
5514
- description
5515
- }) => wrap("", description, "\n") + // Note: fragment variable definitions are experimental and may be changed
5516
- // or removed in the future.
5517
- `fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
5518
- },
5519
- // Value
5520
- IntValue: {
5521
- leave: ({ value }) => value
5522
- },
5523
- FloatValue: {
5524
- leave: ({ value }) => value
5525
- },
5526
- StringValue: {
5527
- leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
5528
- },
5529
- BooleanValue: {
5530
- leave: ({ value }) => value ? "true" : "false"
5531
- },
5532
- NullValue: {
5533
- leave: () => "null"
5534
- },
5535
- EnumValue: {
5536
- leave: ({ value }) => value
5537
- },
5538
- ListValue: {
5539
- leave: ({ values }) => "[" + join(values, ", ") + "]"
5540
- },
5541
- ObjectValue: {
5542
- leave: ({ fields }) => "{" + join(fields, ", ") + "}"
5543
- },
5544
- ObjectField: {
5545
- leave: ({ name, value }) => name + ": " + value
5546
- },
5547
- // Directive
5548
- Directive: {
5549
- leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")")
5550
- },
5551
- // Type
5552
- NamedType: {
5553
- leave: ({ name }) => name
5554
- },
5555
- ListType: {
5556
- leave: ({ type }) => "[" + type + "]"
5557
- },
5558
- NonNullType: {
5559
- leave: ({ type }) => type + "!"
5560
- },
5561
- // Type System Definitions
5562
- SchemaDefinition: {
5563
- leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
5564
- },
5565
- OperationTypeDefinition: {
5566
- leave: ({ operation, type }) => operation + ": " + type
5567
- },
5568
- ScalarTypeDefinition: {
5569
- leave: ({ description, name, directives }) => wrap("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
5570
- },
5571
- ObjectTypeDefinition: {
5572
- leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
5573
- [
5574
- "type",
5575
- name,
5576
- wrap("implements ", join(interfaces, " & ")),
5577
- join(directives, " "),
5578
- block(fields)
5579
- ],
5580
- " "
5581
- )
5582
- },
5583
- FieldDefinition: {
5584
- leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type + wrap(" ", join(directives, " "))
5585
- },
5586
- InputValueDefinition: {
5587
- leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join(
5588
- [name + ": " + type, wrap("= ", defaultValue), join(directives, " ")],
5589
- " "
5590
- )
5591
- },
5592
- InterfaceTypeDefinition: {
5593
- leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
5594
- [
5595
- "interface",
5596
- name,
5597
- wrap("implements ", join(interfaces, " & ")),
5598
- join(directives, " "),
5599
- block(fields)
5600
- ],
5601
- " "
5602
- )
5603
- },
5604
- UnionTypeDefinition: {
5605
- leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join(
5606
- ["union", name, join(directives, " "), wrap("= ", join(types, " | "))],
5607
- " "
5608
- )
5609
- },
5610
- EnumTypeDefinition: {
5611
- leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
5612
- },
5613
- EnumValueDefinition: {
5614
- leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ")
5615
- },
5616
- InputObjectTypeDefinition: {
5617
- leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
5618
- },
5619
- DirectiveDefinition: {
5620
- leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
5621
- },
5622
- SchemaExtension: {
5623
- leave: ({ directives, operationTypes }) => join(
5624
- ["extend schema", join(directives, " "), block(operationTypes)],
5625
- " "
5626
- )
5627
- },
5628
- ScalarTypeExtension: {
5629
- leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
5630
- },
5631
- ObjectTypeExtension: {
5632
- leave: ({ name, interfaces, directives, fields }) => join(
5633
- [
5634
- "extend type",
5635
- name,
5636
- wrap("implements ", join(interfaces, " & ")),
5637
- join(directives, " "),
5638
- block(fields)
5639
- ],
5640
- " "
5641
- )
5642
- },
5643
- InterfaceTypeExtension: {
5644
- leave: ({ name, interfaces, directives, fields }) => join(
5645
- [
5646
- "extend interface",
5647
- name,
5648
- wrap("implements ", join(interfaces, " & ")),
5649
- join(directives, " "),
5650
- block(fields)
5651
- ],
5652
- " "
5653
- )
5654
- },
5655
- UnionTypeExtension: {
5656
- leave: ({ name, directives, types }) => join(
5657
- [
5658
- "extend union",
5659
- name,
5660
- join(directives, " "),
5661
- wrap("= ", join(types, " | "))
5662
- ],
5663
- " "
5664
- )
5665
- },
5666
- EnumTypeExtension: {
5667
- leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
5668
- },
5669
- InputObjectTypeExtension: {
5670
- leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
5671
- },
5672
- // Schema Coordinates
5673
- TypeCoordinate: {
5674
- leave: ({ name }) => name
5675
- },
5676
- MemberCoordinate: {
5677
- leave: ({ name, memberName }) => join([name, wrap(".", memberName)])
5678
- },
5679
- ArgumentCoordinate: {
5680
- leave: ({ name, fieldName, argumentName }) => join([name, wrap(".", fieldName), wrap("(", argumentName, ":)")])
5681
- },
5682
- DirectiveCoordinate: {
5683
- leave: ({ name }) => join(["@", name])
5684
- },
5685
- DirectiveArgumentCoordinate: {
5686
- leave: ({ name, argumentName }) => join(["@", name, wrap("(", argumentName, ":)")])
5687
- }
5688
- };
5689
- function join(maybeArray, separator = "") {
5690
- var _maybeArray$filter$jo;
5691
- return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
5692
- }
5693
- function block(array) {
5694
- return wrap("{\n", indent(join(array, "\n")), "\n}");
5695
- }
5696
- function wrap(start, maybeString, end = "") {
5697
- return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
5698
- }
5699
- function indent(str) {
5700
- return wrap(" ", str.replace(/\n/g, "\n "));
5701
- }
5702
- function hasMultilineItems(maybeArray) {
5703
- var _maybeArray$some;
5704
- return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
5705
- }
5706
-
5707
4866
  // src/graphql/toGraphqlQueryString.ts
4867
+ var import_graphql = require("graphql");
5708
4868
  function toGraphqlQueryString(query) {
5709
- return print(query);
4869
+ return (0, import_graphql.print)(query);
5710
4870
  }
5711
4871
 
5712
4872
  // src/graphql/hooks/admin/hooksMutation.ts