@webexatech/plugin-collection-transfer 0.1.2 → 0.1.3-nocobase.2.3

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.
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- "use strict";(self.webpackChunk_webexatech_plugin_collection_transfer_client_v2=self.webpackChunk_webexatech_plugin_collection_transfer_client_v2||[]).push([["907"],{598:function(e,t,n){n.r(t),n.d(t,{default:function(){return P}});var r=n(485),a=n(155),l=n.n(a),o=n(375),i=n(59),c=n(953),s=n(143);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,a,l,o){try{var i=e[l](o),c=i.value}catch(e){n(e);return}i.done?t(c):Promise.resolve(c).then(r,a)}function p(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var l=e.apply(t,n);function o(e){d(l,r,a,o,i,"next",e)}function i(e){d(l,r,a,o,i,"throw",e)}o(void 0)})}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){m(e,t,n[t])})}return e}function h(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l=[],o=!0,i=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(l.push(n.value),!t||l.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(i)throw r}}return l}}(e,t)||g(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}}function b(e,t){var n,r,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(o,"next",{value:c(0)}),i(o,"throw",{value:c(1)}),i(o,"return",{value:c(2)}),"function"==typeof Symbol&&i(o,Symbol.iterator,{value:function(){return this}}),o;function c(i){return function(c){var s=[i,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(l=0)),l;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return l.label++,{value:s[1],done:!1};case 5:l.label++,r=s[1],s=[0];continue;case 7:s=l.ops.pop(),l.trys.pop();continue;default:if(!(a=(a=l.trys).length>0&&a[a.length-1])&&(6===s[0]||2===s[0])){l=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){l.label=s[1];break}if(6===s[0]&&l.label<a[1]){l.label=a[1],a=s;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(s);break}a[2]&&l.ops.pop(),l.trys.pop();continue}s=t.call(e,l)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}var E=(0,a.createContext)(null);function w(){var e=(0,a.useContext)(E);if(!e)throw Error("CollectionTransferSettings needs TransferServices");return e}function S(e){return p(function(){var t,n,r,a,l,o,i;return b(this,function(c){switch(c.label){case 0:var s,u;if(r=(n=e||{}).response,a=n.message,s=l=null==r?void 0:r.data,null!=(u=Blob)&&"u">typeof Symbol&&u[Symbol.hasInstance]?!u[Symbol.hasInstance](s):!(s instanceof u))return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),o=JSON.parse,[4,l.text()];case 2:return l=o.apply(JSON,[c.sent()]),[3,4];case 3:return c.sent(),l=void 0,[3,4];case 4:return[2,(null==(i=null==l?void 0:l.errors)||null==(t=i[0])?void 0:t.message)||a||String(e)]}})})()}var k=/^\{\{\s*t\(\s*(["'])([^"'{}]*)\1\s*\)\s*\}\}$/;function x(){var e=(0,c.useTranslation)("client").t;return function(t){var n=k.exec(t||"");return n?e(n[2]):t}}var I=function(){var e=(0,s.k)(),t=x(),n=w(),r=(0,a.useId)(),o=y((0,a.useState)([]),2),c=o[0],u=o[1],d=y((0,a.useState)(!0),2),m=d[0],f=d[1],h=y((0,a.useState)([]),2),v=h[0],g=h[1],E=y((0,a.useState)(!1),2),k=E[0],I=E[1],T=y((0,a.useState)(!1),2),C=T[0],O=T[1],j=y((0,a.useState)(),2),A=j[0],P=j[1],z=y((0,a.useState)(),2),D=z[0],R=z[1],N=(0,a.useCallback)(function(){return p(function(){var e;return b(this,function(t){switch(t.label){case 0:f(!0),P(void 0),t.label=1;case 1:return t.trys.push([1,3,5,6]),[4,n.request({url:"collectionTransfer:listCollections",method:"get"})];case 2:return u((null==(e=t.sent().data)?void 0:e.data)||[]),[3,6];case 3:return[4,S(t.sent())];case 4:return P.apply(void 0,[t.sent()]),[3,6];case 5:return f(!1),[7];case 6:return[2]}})})()},[n]);(0,a.useEffect)(function(){N()},[N]);var _=[{title:e("Title"),dataIndex:"title",render:function(e){return t(e)}},{title:e("Name"),dataIndex:"name",render:function(e){return l().createElement(i.Typography.Text,{code:!0},e)}},{title:e("Template"),dataIndex:"template",render:function(t,n){return n.supported?l().createElement(i.Tag,null,t):l().createElement(i.Tooltip,{title:e("Only general collections can be transferred in this version")},l().createElement(i.Tag,{color:"warning"},e("Not supported")))}}],F=D?D.collections.filter(function(e){return!D.selected.includes(e)}):[];return l().createElement(i.Space,{direction:"vertical",size:"middle",style:{width:"100%"}},l().createElement(i.Typography.Paragraph,{type:"secondary",style:{marginBottom:0}},e("Select the collections to export. The file can be imported into another environment.")),A&&l().createElement(i.Alert,{type:"error",showIcon:!0,message:A,role:"alert"}),l().createElement(i.Table,{rowKey:"name",size:"middle",loading:m,columns:_,dataSource:c,pagination:!1,rowSelection:{selectedRowKeys:v,onChange:g,getCheckboxProps:function(e){return{disabled:!e.supported,"aria-label":t(e.title)}}},locale:{emptyText:e("No collections to export")}}),l().createElement(i.Space,{align:"center",wrap:!0},l().createElement(i.Switch,{id:r,checked:k,onChange:I}),l().createElement("label",{htmlFor:r},e("Include data")),l().createElement(i.Button,{type:"primary",onClick:function(){return p(function(){var e,t,r,a;return b(this,function(l){switch(l.label){case 0:O(!0),P(void 0),R(void 0),l.label=1;case 1:return l.trys.push([1,3,5,6]),[4,n.request({url:"collectionTransfer:export",method:"post",data:{collections:v,includeData:k},responseType:"blob"})];case 2:var o,i,c,s,u,d;return c=(r=l.sent()).data,o=null==(e=r.headers)?void 0:e["content-disposition"],s=(i=/filename\*?=(?:UTF-8'')?"?([^";]+)"?/i.exec(o||""))?decodeURIComponent(i[1]):"collections.zip",u=URL.createObjectURL(new Blob([c],{type:"application/zip"})),(d=document.createElement("a")).href=u,d.download=s,document.body.appendChild(d),d.click(),d.remove(),URL.revokeObjectURL(u),(a=null==(t=r.headers)?void 0:t["x-collection-transfer-manifest"])&&R(JSON.parse(decodeURIComponent(a))),[3,6];case 3:return[4,S(l.sent())];case 4:return P.apply(void 0,[l.sent()]),[3,6];case 5:return O(!1),[7];case 6:return[2]}})})()},loading:C,disabled:!v.length},e("Export"))),D&&l().createElement(i.Alert,{type:"success",showIcon:!0,role:"status",message:e("Exported {{count}} collection(s)",{count:D.collections.length}),description:l().createElement(i.Space,{direction:"vertical",size:4},F.length>0&&l().createElement("span",null,e("Added because they are needed: {{names}}",{names:F.join(", ")})),D.dependencies.length>0&&l().createElement("span",null,e("Must already exist in the target environment: {{names}}",{names:D.dependencies.join(", ")})))}))},T=["skipCollectionImportData","overrideAll"],C=["overrideSchema","overrideAll"],O=function(){var e=(0,s.k)(),t=x(),n=w(),r=y((0,a.useState)(!1),2),c=r[0],u=r[1],d=y((0,a.useState)(!1),2),g=d[0],E=d[1],k=y((0,a.useState)(!1),2),I=k[0],O=k[1],j=y((0,a.useState)(),2),A=j[0],P=j[1],z=y((0,a.useState)({}),2),D=z[0],R=z[1],N=y((0,a.useState)(),2),_=N[0],F=N[1],U=y((0,a.useState)(),2),M=U[0],q=U[1],B=((null==A?void 0:A.interfaces)||[]).filter(function(e){return!n.hasFieldInterface(e.interface)}).map(function(e){return{code:"unknownInterface",collection:e.collection,field:e.field,detail:e.interface}}),L=v((null==A?void 0:A.problems)||[]).concat(v(B)),J=!!(null==A?void 0:A.manifest.includeData),K=(null==A?void 0:A.conflicts)||[],G=K.filter(function(e){return C.includes(D[e.name])}),V=new Set(v(((null==A?void 0:A.manifest.collections)||[]).filter(function(e){return!K.some(function(t){return t.name===e})})).concat(v(G.map(function(e){return e.name})))),W=G.flatMap(function(e){return e.referencedBy.filter(function(e){return!V.has(e.collection)&&!e.restored}).map(function(e){return"".concat(e.collection,".").concat(e.field)})}),$=function(){P(void 0),R({}),F(void 0),q(void 0)},Y=function(e){P(e);var t={},n=!0,r=!1,a=void 0;try{for(var l,o=(e.conflicts||[])[Symbol.iterator]();!(n=(l=o.next()).done);n=!0)t[l.value.name]=e.manifest.includeData?"overrideAll":"overrideSchema"}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}R(t)},H=function(){return p(function(){var e,t,r,a,l;return b(this,function(o){switch(o.label){case 0:if(!A)return[2];O(!1),E(!0),q(void 0),o.label=1;case 1:return o.trys.push([1,3,5,6]),[4,n.request({url:"collectionTransfer:import",method:"post",data:{token:A.token,resolutions:D}})];case 2:return F(null==(e=o.sent().data)?void 0:e.data),P(void 0),[3,6];case 3:return(null==(l=null==(t=o.sent())||null==(a=t.response)||null==(r=a.data)?void 0:r.problems)?void 0:l.length)&&P(h(f({},A),{problems:l})),[4,S(t)];case 4:return q.apply(void 0,[o.sent()]),[3,6];case 5:return E(!1),[7];case 6:return[2]}})})()},Q=[{title:e("Collection"),dataIndex:"title",render:function(n,r){return l().createElement(i.Space,{size:4},l().createElement("span",null,t(n)),l().createElement(i.Typography.Text,{type:"secondary",code:!0},r.name),r.isThrough&&l().createElement(i.Tag,null,e("Junction table")))}},{title:e("Fields"),dataIndex:"fieldCount",width:100,render:function(e,t){return t.isThrough?"–":e}},{title:e("Rows"),dataIndex:"rowCount",width:100,render:function(e){return J?e:"–"}}],X={skipCollectionImportData:e("Skip collection, import data"),skipAll:e("Skip collection and data"),overrideSchema:e("Override collection, without data"),overrideAll:e("Override collection and data")},Z=[{title:e("Collection"),dataIndex:"title",width:"35%",render:function(e,n){return l().createElement(i.Space,{size:4,wrap:!0},l().createElement("span",null,t(e)),l().createElement(i.Typography.Text,{type:"secondary",code:!0},n.name))}},{title:e("What to do"),dataIndex:"name",render:function(t,n){var r=J&&n.missingColumns.length>0;return l().createElement(i.Radio.Group,{"aria-label":e('What to do with "{{name}}"',{name:t}),value:D[t],onChange:function(e){return R(function(n){return h(f({},n),m({},t,e.target.value))})}},l().createElement(i.Space,{direction:"vertical",size:2},Object.keys(X).map(function(t){var a=!J&&T.includes(t),o=a||"skipCollectionImportData"===t&&r,c=a?e("The file contains no data"):"skipCollectionImportData"===t&&r?e("Missing columns here: {{columns}}",{columns:n.missingColumns.join(", ")}):void 0;return l().createElement(i.Radio,{key:t,value:t,disabled:o},X[t],c&&l().createElement(i.Typography.Text,{type:"secondary",style:{marginInlineStart:8}},"(",c,")"))})))}}];return l().createElement(i.Space,{direction:"vertical",size:"middle",style:{width:"100%"}},l().createElement(i.Upload.Dragger,{accept:".zip",maxCount:1,showUploadList:!1,customRequest:function(e){var t=e.file,r=e.onSuccess,a=e.onError;return p(function(){var e,l,o;return b(this,function(i){switch(i.label){case 0:$(),u(!0),(e=new FormData).append("file",t),i.label=1;case 1:return i.trys.push([1,3,5,6]),[4,n.request({url:"collectionTransfer:preview",method:"post",data:e})];case 2:return Y(null==(l=i.sent().data)?void 0:l.data),null==r||r(l),[3,6];case 3:return[4,S(o=i.sent())];case 4:return q.apply(void 0,[i.sent()]),null==a||a(o),[3,6];case 5:return u(!1),[7];case 6:return[2]}})})()},disabled:c||g},l().createElement("p",{className:"ant-upload-drag-icon"},l().createElement(o.InboxOutlined,{"aria-hidden":!0})),l().createElement("p",{className:"ant-upload-text"},e("Click or drag a collection package (.zip) here")),l().createElement("p",{className:"ant-upload-hint"},e("Nothing is changed until you confirm the import."))),c&&l().createElement(i.Alert,{type:"info",showIcon:!0,message:e("Checking package…"),role:"status","aria-busy":!0}),M&&l().createElement(i.Alert,{type:"error",showIcon:!0,message:M,role:"alert"}),A&&l().createElement(i.Card,{size:"small",title:e("Preview")},l().createElement(i.Space,{direction:"vertical",size:"middle",style:{width:"100%"}},l().createElement(i.Descriptions,{size:"small",column:{xs:1,sm:2}},l().createElement(i.Descriptions.Item,{label:e("Exported at")},new Date(A.manifest.exportedAt).toLocaleString()),l().createElement(i.Descriptions.Item,{label:e("Source version")},A.manifest.sourceAppVersion),l().createElement(i.Descriptions.Item,{label:e("Includes data")},J?e("Yes"):e("No")),l().createElement(i.Descriptions.Item,{label:e("Requires")},A.manifest.dependencies.join(", ")||"–")),l().createElement(i.Table,{rowKey:"name",size:"small",columns:Q,dataSource:A.collections,pagination:!1}),K.length>0&&l().createElement(i.Space,{direction:"vertical",size:"small",style:{width:"100%"}},l().createElement(i.Typography.Title,{level:5,style:{margin:0}},e("Already exists here")),l().createElement(i.Table,{rowKey:"name",size:"small",columns:Z,dataSource:K,pagination:!1}),W.length>0&&l().createElement(i.Alert,{type:"warning",showIcon:!0,message:e("Overriding also removes these fields from other collections: {{fields}}",{fields:W.join(", ")})})),L.length>0?l().createElement(i.Alert,{type:"error",showIcon:!0,role:"alert",message:e("This package cannot be imported here"),description:l().createElement(i.Space,{direction:"vertical",size:4},l().createElement("ul",{style:{margin:0,paddingInlineStart:20}},L.map(function(t){return l().createElement("li",{key:"".concat(t.code,"-").concat(t.collection,"-").concat(t.field,"-").concat(t.detail)},function(e,t){var n={collection:t.collection,field:t.field,detail:t.detail};switch(t.code){case"collectionExists":return e('Collection "{{collection}}" already exists in this environment',n);case"tableExists":return e('A database table for "{{collection}}" already exists in this environment',n);case"missingDependency":return e('Collection "{{collection}}" is referenced by a relation but does not exist in this environment',n);case"unknownFieldType":return e('Field "{{collection}}.{{field}}" uses type "{{detail}}", which is not available here',n);case"unsupportedTemplate":return e('Collection "{{collection}}" uses template "{{detail}}", which cannot be transferred yet',n);case"identifierTooLong":return e('Name "{{detail}}" in "{{collection}}" is too long for the database',h(f({},n),{detail:t.detail||t.collection}));case"dialect":return e("The package was exported from a different database type ({{detail}})",n);case"formatVersion":return e("The package format version {{detail}} is not supported",n);case"unknownInterface":return e('Field "{{collection}}.{{field}}" uses the "{{detail}}" field kind, which is not available here',n);case"systemCollection":return e('"{{collection}}" is a system or plugin collection here and cannot be replaced by an import',n);case"unresolvedConflict":return e('Choose what to do with the existing collection "{{collection}}"',n);case"columnsMismatch":return e('"{{collection}}" here lacks columns from the file ({{detail}}), so its data cannot be added',n);case"outsidePackage":return e('"{{collection}}" would change something outside the package: {{detail}}',n);case"unsafeExpression":return e('"{{collection}}" contains an expression that is not allowed in a package: {{detail}}',n);case"invalidName":return e('Collection name "{{collection}}" is not valid',n);default:return e("The package is incomplete or damaged ({{detail}})",h(f({},n),{detail:t.detail||t.code}))}}(e,t))})),B.length>0&&A.missingPlugins.length>0&&l().createElement("span",null,e("Enabled in the source environment but not here: {{names}}",{names:A.missingPlugins.join(", ")})))}):l().createElement(i.Alert,{type:"success",showIcon:!0,message:e("Ready to import. All collections are created in a single step and rolled back on error.")}),l().createElement(i.Space,null,l().createElement(i.Button,{type:"primary",onClick:function(){G.length?O(!0):H()},loading:g,disabled:L.length>0},e("Import")),l().createElement(i.Button,{onClick:$,disabled:g},e("Cancel"))))),l().createElement(i.Modal,{open:I,title:e("Replace existing collections?"),okText:e("Replace and import"),okButtonProps:{danger:!0},cancelText:e("Cancel"),onOk:H,onCancel:function(){return O(!1)}},l().createElement(i.Space,{direction:"vertical",size:"small"},l().createElement("span",null,e("The existing data of these collections will be permanently deleted:")),l().createElement("ul",{style:{margin:0,paddingInlineStart:20}},G.map(function(e){return l().createElement("li",{key:e.name},t(e.title)," ",l().createElement(i.Typography.Text,{code:!0},e.name)," –"," ",X[D[e.name]])})),W.length>0&&l().createElement(i.Alert,{type:"warning",showIcon:!0,message:e("Overriding also removes these fields from other collections: {{fields}}",{fields:W.join(", ")})}))),_&&l().createElement(i.Alert,{type:"success",showIcon:!0,role:"status",message:e("Imported {{count}} collection(s)",{count:_.collections.length}),description:l().createElement(i.Space,{direction:"vertical",size:4},_.overridden.length>0&&l().createElement("span",null,e("Overridden: {{names}}",{names:_.overridden.join(", ")})),_.skipped.length>0&&l().createElement("span",null,e("Skipped: {{names}}",{names:_.skipped.join(", ")})),Object.keys(_.rowCounts).length>0?l().createElement("ul",{style:{margin:0,paddingInlineStart:20}},Object.entries(_.rowCounts).map(function(t){var n=y(t,2),r=n[0],a=n[1];return l().createElement("li",{key:r},e("{{name}}: {{count}} row(s)",{name:r,count:a}))})):l().createElement("span",null,e("No rows were imported.")))}))},j=function(){var e=(0,s.k)();return l().createElement(i.Card,{variant:"borderless"},l().createElement(i.Tabs,{items:[{key:"export",label:e("Export"),children:l().createElement(I,null)},{key:"import",label:e("Import"),children:l().createElement(O,null)}]}))},A=function(e){var t=e.services;return l().createElement(E.Provider,{value:t},l().createElement(j,null))},P=function(){var e=(0,r.useApp)(),t=(0,a.useMemo)(function(){return{request:function(t){return e.apiClient.request(t)},hasFieldInterface:function(t){var n,r;return!!(null==(r=e.dataSourceManager)||null==(n=r.collectionFieldInterfaceManager)?void 0:n.getFieldInterface(t))}}},[e]);return l().createElement(A,{services:t})}}}]);
10
+ "use strict";(self.webpackChunk_webexatech_plugin_collection_transfer_client_v2=self.webpackChunk_webexatech_plugin_collection_transfer_client_v2||[]).push([["907"],{598:function(e,t,n){n.r(t),n.d(t,{default:function(){return P}});var r=n(485),a=n(155),l=n.n(a),o=n(375),i=n(59),c=n(953),s=n(143);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,a,l,o){try{var i=e[l](o),c=i.value}catch(e){n(e);return}i.done?t(c):Promise.resolve(c).then(r,a)}function m(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var l=e.apply(t,n);function o(e){d(l,r,a,o,i,"next",e)}function i(e){d(l,r,a,o,i,"throw",e)}o(void 0)})}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){p(e,t,n[t])})}return e}function h(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l=[],o=!0,i=!1;try{for(a=a.call(e);!(o=(n=a.next()).done)&&(l.push(n.value),!t||l.length!==t);o=!0);}catch(e){i=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(i)throw r}}return l}}(e,t)||g(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}}function b(e,t){var n,r,a,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(o,"next",{value:c(0)}),i(o,"throw",{value:c(1)}),i(o,"return",{value:c(2)}),"function"==typeof Symbol&&i(o,Symbol.iterator,{value:function(){return this}}),o;function c(i){return function(c){var s=[i,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(l=0)),l;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return l.label++,{value:s[1],done:!1};case 5:l.label++,r=s[1],s=[0];continue;case 7:s=l.ops.pop(),l.trys.pop();continue;default:if(!(a=(a=l.trys).length>0&&a[a.length-1])&&(6===s[0]||2===s[0])){l=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){l.label=s[1];break}if(6===s[0]&&l.label<a[1]){l.label=a[1],a=s;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(s);break}a[2]&&l.ops.pop(),l.trys.pop();continue}s=t.call(e,l)}catch(e){s=[6,e],r=0}finally{n=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}var E=(0,a.createContext)(null);function w(){var e=(0,a.useContext)(E);if(!e)throw Error("CollectionTransferSettings needs TransferServices");return e}function S(e){return m(function(){var t,n,r,a,l,o,i;return b(this,function(c){switch(c.label){case 0:var s,u;if(r=(n=e||{}).response,a=n.message,s=l=null==r?void 0:r.data,null!=(u=Blob)&&"u">typeof Symbol&&u[Symbol.hasInstance]?!u[Symbol.hasInstance](s):!(s instanceof u))return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),o=JSON.parse,[4,l.text()];case 2:return l=o.apply(JSON,[c.sent()]),[3,4];case 3:return c.sent(),l=void 0,[3,4];case 4:return[2,(null==(i=null==l?void 0:l.errors)||null==(t=i[0])?void 0:t.message)||a||String(e)]}})})()}var k=/^\{\{\s*t\(\s*(["'])([^"'{}]*)\1\s*\)\s*\}\}$/;function x(){var e=(0,c.useTranslation)("client").t;return function(t){var n=k.exec(t||"");return n?e(n[2]):t}}var I=function(){var e=(0,s.k)(),t=x(),n=w(),r=(0,a.useId)(),o=y((0,a.useState)([]),2),c=o[0],u=o[1],d=y((0,a.useState)(!0),2),p=d[0],f=d[1],h=y((0,a.useState)([]),2),v=h[0],g=h[1],E=y((0,a.useState)(!1),2),k=E[0],I=E[1],T=y((0,a.useState)(!1),2),C=T[0],O=T[1],j=y((0,a.useState)(),2),A=j[0],P=j[1],z=y((0,a.useState)(),2),D=z[0],N=z[1],R=(0,a.useCallback)(function(){return m(function(){var e;return b(this,function(t){switch(t.label){case 0:f(!0),P(void 0),t.label=1;case 1:return t.trys.push([1,3,5,6]),[4,n.request({url:"collectionTransfer:listCollections",method:"get"})];case 2:return u((null==(e=t.sent().data)?void 0:e.data)||[]),[3,6];case 3:return[4,S(t.sent())];case 4:return P.apply(void 0,[t.sent()]),[3,6];case 5:return f(!1),[7];case 6:return[2]}})})()},[n]);(0,a.useEffect)(function(){R()},[R]);var _=[{title:e("Title"),dataIndex:"title",render:function(e){return t(e)}},{title:e("Name"),dataIndex:"name",render:function(e){return l().createElement(i.Typography.Text,{code:!0},e)}},{title:e("Template"),dataIndex:"template",render:function(t,n){return n.supported?l().createElement(i.Tag,null,t):l().createElement(i.Tooltip,{title:e("Only general collections can be transferred in this version")},l().createElement(i.Tag,{color:"warning"},e("Not supported")))}}],F=D?D.collections.filter(function(e){return!D.selected.includes(e)}):[];return l().createElement(i.Space,{direction:"vertical",size:"middle",style:{width:"100%"}},l().createElement(i.Typography.Paragraph,{type:"secondary",style:{marginBottom:0}},e("Select the collections to export. The file can be imported into another environment.")),A&&l().createElement(i.Alert,{type:"error",showIcon:!0,message:A,role:"alert"}),l().createElement(i.Table,{rowKey:"name",size:"middle",loading:p,columns:_,dataSource:c,pagination:!1,rowSelection:{selectedRowKeys:v,onChange:g,getCheckboxProps:function(e){return{disabled:!e.supported,"aria-label":t(e.title)}}},locale:{emptyText:e("No collections to export")}}),l().createElement(i.Space,{align:"center",wrap:!0},l().createElement(i.Switch,{id:r,checked:k,onChange:I}),l().createElement("label",{htmlFor:r},e("Include data")),l().createElement(i.Button,{type:"primary",onClick:function(){return m(function(){var e,t,r,a;return b(this,function(l){switch(l.label){case 0:O(!0),P(void 0),N(void 0),l.label=1;case 1:return l.trys.push([1,4,6,7]),[4,n.request({url:"collectionTransfer:export",method:"post",data:{collections:v,includeData:k}})];case 2:return r=null==(t=l.sent().data)?void 0:t.data,[4,n.request({url:"collectionTransfer:download",method:"get",params:{token:r.token},responseType:"blob"})];case 3:var o,i,c,s,u,d;return c=(a=l.sent()).data,s=r.fileName||(o=null==(e=a.headers)?void 0:e["content-disposition"],(i=/filename\*?=(?:UTF-8'')?"?([^";]+)"?/i.exec(o||""))?decodeURIComponent(i[1]):"collections.zip"),u=URL.createObjectURL(new Blob([c],{type:"application/zip"})),(d=document.createElement("a")).href=u,d.download=s,document.body.appendChild(d),d.click(),d.remove(),URL.revokeObjectURL(u),N(r.manifest),[3,7];case 4:return[4,S(l.sent())];case 5:return P.apply(void 0,[l.sent()]),[3,7];case 6:return O(!1),[7];case 7:return[2]}})})()},loading:C,disabled:!v.length},e("Export"))),D&&l().createElement(i.Alert,{type:"success",showIcon:!0,role:"status",message:e("Exported {{count}} collection(s)",{count:D.collections.length}),description:l().createElement(i.Space,{direction:"vertical",size:4},F.length>0&&l().createElement("span",null,e("Added because they are needed: {{names}}",{names:F.join(", ")})),D.dependencies.length>0&&l().createElement("span",null,e("Must already exist in the target environment: {{names}}",{names:D.dependencies.join(", ")})))}))},T=["skipCollectionImportData","overrideAll"],C=["overrideSchema","overrideAll"],O=function(){var e=(0,s.k)(),t=x(),n=w(),r=y((0,a.useState)(!1),2),c=r[0],u=r[1],d=y((0,a.useState)(!1),2),g=d[0],E=d[1],k=y((0,a.useState)(!1),2),I=k[0],O=k[1],j=y((0,a.useState)(),2),A=j[0],P=j[1],z=y((0,a.useState)({}),2),D=z[0],N=z[1],R=y((0,a.useState)(),2),_=R[0],F=R[1],q=y((0,a.useState)(),2),M=q[0],U=q[1],B=((null==A?void 0:A.interfaces)||[]).filter(function(e){return!n.hasFieldInterface(e.interface)}).map(function(e){return{code:"unknownInterface",collection:e.collection,field:e.field,detail:e.interface}}),L=v((null==A?void 0:A.problems)||[]).concat(v(B)),K=!!(null==A?void 0:A.manifest.includeData),J=(null==A?void 0:A.conflicts)||[],G=J.filter(function(e){return C.includes(D[e.name])}),V=new Set(v(((null==A?void 0:A.manifest.collections)||[]).filter(function(e){return!J.some(function(t){return t.name===e})})).concat(v(G.map(function(e){return e.name})))),W=G.flatMap(function(e){return e.referencedBy.filter(function(e){return!V.has(e.collection)&&!e.restored}).map(function(e){return"".concat(e.collection,".").concat(e.field)})}),$=function(){P(void 0),N({}),F(void 0),U(void 0)},Y=function(e){P(e);var t={},n=!0,r=!1,a=void 0;try{for(var l,o=(e.conflicts||[])[Symbol.iterator]();!(n=(l=o.next()).done);n=!0)t[l.value.name]=e.manifest.includeData?"overrideAll":"overrideSchema"}catch(e){r=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw a}}N(t)},H=function(){return m(function(){var e,t,r,a,l;return b(this,function(o){switch(o.label){case 0:if(!A)return[2];O(!1),E(!0),U(void 0),o.label=1;case 1:return o.trys.push([1,3,5,6]),[4,n.request({url:"collectionTransfer:import",method:"post",data:{token:A.token,resolutions:D}})];case 2:return F(null==(e=o.sent().data)?void 0:e.data),P(void 0),[3,6];case 3:return(null==(l=null==(t=o.sent())||null==(a=t.response)||null==(r=a.data)?void 0:r.problems)?void 0:l.length)&&P(h(f({},A),{problems:l})),[4,S(t)];case 4:return U.apply(void 0,[o.sent()]),[3,6];case 5:return E(!1),[7];case 6:return[2]}})})()},Q=[{title:e("Collection"),dataIndex:"title",render:function(n,r){return l().createElement(i.Space,{size:4},l().createElement("span",null,t(n)),l().createElement(i.Typography.Text,{type:"secondary",code:!0},r.name),r.isThrough&&l().createElement(i.Tag,null,e("Junction table")))}},{title:e("Fields"),dataIndex:"fieldCount",width:100,render:function(e,t){return t.isThrough?"–":e}},{title:e("Rows"),dataIndex:"rowCount",width:100,render:function(e){return K?e:"–"}}],X={skipCollectionImportData:e("Skip collection, import data"),skipAll:e("Skip collection and data"),overrideSchema:e("Override collection, without data"),overrideAll:e("Override collection and data")},Z=[{title:e("Collection"),dataIndex:"title",width:"35%",render:function(e,n){return l().createElement(i.Space,{size:4,wrap:!0},l().createElement("span",null,t(e)),l().createElement(i.Typography.Text,{type:"secondary",code:!0},n.name))}},{title:e("What to do"),dataIndex:"name",render:function(t,n){var r=K&&n.missingColumns.length>0;return l().createElement(i.Radio.Group,{"aria-label":e('What to do with "{{name}}"',{name:t}),value:D[t],onChange:function(e){return N(function(n){return h(f({},n),p({},t,e.target.value))})}},l().createElement(i.Space,{direction:"vertical",size:2},Object.keys(X).map(function(t){var a=!K&&T.includes(t),o=a||"skipCollectionImportData"===t&&r,c=a?e("The file contains no data"):"skipCollectionImportData"===t&&r?e("Missing columns here: {{columns}}",{columns:n.missingColumns.join(", ")}):void 0;return l().createElement(i.Radio,{key:t,value:t,disabled:o},X[t],c&&l().createElement(i.Typography.Text,{type:"secondary",style:{marginInlineStart:8}},"(",c,")"))})))}}];return l().createElement(i.Space,{direction:"vertical",size:"middle",style:{width:"100%"}},l().createElement(i.Upload.Dragger,{accept:".zip",maxCount:1,showUploadList:!1,customRequest:function(e){var t=e.file,r=e.onSuccess,a=e.onError;return m(function(){var e,l,o;return b(this,function(i){switch(i.label){case 0:$(),u(!0),(e=new FormData).append("file",t),i.label=1;case 1:return i.trys.push([1,3,5,6]),[4,n.request({url:"collectionTransfer:preview",method:"post",data:e})];case 2:return Y(null==(l=i.sent().data)?void 0:l.data),null==r||r(l),[3,6];case 3:return[4,S(o=i.sent())];case 4:return U.apply(void 0,[i.sent()]),null==a||a(o),[3,6];case 5:return u(!1),[7];case 6:return[2]}})})()},disabled:c||g},l().createElement("p",{className:"ant-upload-drag-icon"},l().createElement(o.InboxOutlined,{"aria-hidden":!0})),l().createElement("p",{className:"ant-upload-text"},e("Click or drag a collection package (.zip) here")),l().createElement("p",{className:"ant-upload-hint"},e("Nothing is changed until you confirm the import."))),c&&l().createElement(i.Alert,{type:"info",showIcon:!0,message:e("Checking package…"),role:"status","aria-busy":!0}),M&&l().createElement(i.Alert,{type:"error",showIcon:!0,message:M,role:"alert"}),A&&l().createElement(i.Card,{size:"small",title:e("Preview")},l().createElement(i.Space,{direction:"vertical",size:"middle",style:{width:"100%"}},l().createElement(i.Descriptions,{size:"small",column:{xs:1,sm:2}},l().createElement(i.Descriptions.Item,{label:e("Exported at")},new Date(A.manifest.exportedAt).toLocaleString()),l().createElement(i.Descriptions.Item,{label:e("Source version")},A.manifest.sourceAppVersion),l().createElement(i.Descriptions.Item,{label:e("Includes data")},K?e("Yes"):e("No")),l().createElement(i.Descriptions.Item,{label:e("Requires")},A.manifest.dependencies.join(", ")||"–")),l().createElement(i.Table,{rowKey:"name",size:"small",columns:Q,dataSource:A.collections,pagination:!1}),J.length>0&&l().createElement(i.Space,{direction:"vertical",size:"small",style:{width:"100%"}},l().createElement(i.Typography.Title,{level:5,style:{margin:0}},e("Already exists here")),l().createElement(i.Table,{rowKey:"name",size:"small",columns:Z,dataSource:J,pagination:!1}),W.length>0&&l().createElement(i.Alert,{type:"warning",showIcon:!0,message:e("Overriding also removes these fields from other collections: {{fields}}",{fields:W.join(", ")})})),L.length>0?l().createElement(i.Alert,{type:"error",showIcon:!0,role:"alert",message:e("This package cannot be imported here"),description:l().createElement(i.Space,{direction:"vertical",size:4},l().createElement("ul",{style:{margin:0,paddingInlineStart:20}},L.map(function(t){return l().createElement("li",{key:"".concat(t.code,"-").concat(t.collection,"-").concat(t.field,"-").concat(t.detail)},function(e,t){var n={collection:t.collection,field:t.field,detail:t.detail};switch(t.code){case"collectionExists":return e('Collection "{{collection}}" already exists in this environment',n);case"tableExists":return e('A database table for "{{collection}}" already exists in this environment',n);case"missingDependency":return e('Collection "{{collection}}" is referenced by a relation but does not exist in this environment',n);case"unknownFieldType":return e('Field "{{collection}}.{{field}}" uses type "{{detail}}", which is not available here',n);case"unsupportedTemplate":return e('Collection "{{collection}}" uses template "{{detail}}", which cannot be transferred yet',n);case"identifierTooLong":return e('Name "{{detail}}" in "{{collection}}" is too long for the database',h(f({},n),{detail:t.detail||t.collection}));case"dialect":return e("The package was exported from a different database type ({{detail}})",n);case"formatVersion":return e("The package format version {{detail}} is not supported",n);case"unknownInterface":return e('Field "{{collection}}.{{field}}" uses the "{{detail}}" field kind, which is not available here',n);case"systemCollection":return e('"{{collection}}" is a system or plugin collection here and cannot be replaced by an import',n);case"unresolvedConflict":return e('Choose what to do with the existing collection "{{collection}}"',n);case"columnsMismatch":return e('"{{collection}}" here lacks columns from the file ({{detail}}), so its data cannot be added',n);case"outsidePackage":return e('"{{collection}}" would change something outside the package: {{detail}}',n);case"unsafeExpression":return e('"{{collection}}" contains an expression that is not allowed in a package: {{detail}}',n);case"invalidName":return e('Collection name "{{collection}}" is not valid',n);default:return e("The package is incomplete or damaged ({{detail}})",h(f({},n),{detail:t.detail||t.code}))}}(e,t))})),B.length>0&&A.missingPlugins.length>0&&l().createElement("span",null,e("Enabled in the source environment but not here: {{names}}",{names:A.missingPlugins.join(", ")})))}):l().createElement(i.Alert,{type:"success",showIcon:!0,message:e("Ready to import. All collections are created in a single step and rolled back on error.")}),l().createElement(i.Space,null,l().createElement(i.Button,{type:"primary",onClick:function(){G.length?O(!0):H()},loading:g,disabled:L.length>0},e("Import")),l().createElement(i.Button,{onClick:$,disabled:g},e("Cancel"))))),l().createElement(i.Modal,{open:I,title:e("Replace existing collections?"),okText:e("Replace and import"),okButtonProps:{danger:!0},cancelText:e("Cancel"),onOk:H,onCancel:function(){return O(!1)}},l().createElement(i.Space,{direction:"vertical",size:"small"},l().createElement("span",null,e("The existing data of these collections will be permanently deleted:")),l().createElement("ul",{style:{margin:0,paddingInlineStart:20}},G.map(function(e){return l().createElement("li",{key:e.name},t(e.title)," ",l().createElement(i.Typography.Text,{code:!0},e.name)," –"," ",X[D[e.name]])})),W.length>0&&l().createElement(i.Alert,{type:"warning",showIcon:!0,message:e("Overriding also removes these fields from other collections: {{fields}}",{fields:W.join(", ")})}))),_&&l().createElement(i.Alert,{type:"success",showIcon:!0,role:"status",message:e("Imported {{count}} collection(s)",{count:_.collections.length}),description:l().createElement(i.Space,{direction:"vertical",size:4},_.overridden.length>0&&l().createElement("span",null,e("Overridden: {{names}}",{names:_.overridden.join(", ")})),_.skipped.length>0&&l().createElement("span",null,e("Skipped: {{names}}",{names:_.skipped.join(", ")})),Object.keys(_.rowCounts).length>0?l().createElement("ul",{style:{margin:0,paddingInlineStart:20}},Object.entries(_.rowCounts).map(function(t){var n=y(t,2),r=n[0],a=n[1];return l().createElement("li",{key:r},e("{{name}}: {{count}} row(s)",{name:r,count:a}))})):l().createElement("span",null,e("No rows were imported.")))}))},j=function(){var e=(0,s.k)();return l().createElement(i.Card,{variant:"borderless"},l().createElement(i.Tabs,{items:[{key:"export",label:e("Export"),children:l().createElement(I,null)},{key:"import",label:e("Import"),children:l().createElement(O,null)}]}))},A=function(e){var t=e.services;return l().createElement(E.Provider,{value:t},l().createElement(j,null))},P=function(){var e=(0,r.useApp)(),t=(0,a.useMemo)(function(){return{request:function(t){return e.apiClient.request(t)},hasFieldInterface:function(t){var n,r;return!!(null==(r=e.dataSourceManager)||null==(n=r.collectionFieldInterfaceManager)?void 0:n.getFieldInterface(t))}}},[e]);return l().createElement(A,{services:t})}}}]);
@@ -7,6 +7,7 @@ export interface TransferServices {
7
7
  request: (config: {
8
8
  url: string;
9
9
  method: 'get' | 'post';
10
+ params?: Record<string, string>;
10
11
  data?: unknown;
11
12
  responseType?: 'blob' | 'json';
12
13
  }) => Promise<{
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@ant-design/icons")):"function"==typeof define&&define.amd?define("@webexatech/plugin-collection-transfer/client-v2",["react-i18next","@nocobase/client-v2","react","antd","@ant-design/icons"],t):"object"==typeof exports?exports["@webexatech/plugin-collection-transfer/client-v2"]=t(require("react-i18next"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@ant-design/icons")):e["@webexatech/plugin-collection-transfer/client-v2"]=t(e["react-i18next"],e["@nocobase/client-v2"],e.react,e.antd,e["@ant-design/icons"])}(self,function(e,t,n,r,o){return function(){"use strict";var i,c,a,u={143:function(e,t,n){n.d(t,{C:function(){return c},k:function(){return a}});var r=n(155),o=n(953);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var c=JSON.parse('{"UU":"@webexatech/plugin-collection-transfer"}').UU;function a(){var e=(0,o.useTranslation)([c,"client"],{nsMode:"fallback"}).t;return(0,r.useCallback)(function(t,n){var r,o;return e(t,(r=i({},n),o=o={interpolation:i({escapeValue:!1},null==n?void 0:n.interpolation)},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r))},[e])}},375:function(e){e.exports=o},485:function(e){e.exports=t},59:function(e){e.exports=r},155:function(e){e.exports=n},953:function(t){t.exports=e}},l={};function f(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return u[e](n,n.exports,f),n.exports}f.m=u,f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,{a:t}),t},f.d=function(e,t){for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.f={},f.e=function(e){return Promise.all(Object.keys(f.f).reduce(function(t,n){return f.f[n](e,t),t},[]))},f.u=function(e){return""+e+".bed81d14270e80c6.js"},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p={},f.l=function(e,t,n,r){if(p[e])return void p[e].push(t);if(void 0!==n)for(var o,i,c=document.getElementsByTagName("script"),a=0;a<c.length;a++){var u=c[a];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@webexatech/plugin-collection-transfer/client-v2:"+n){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,f.nc&&o.setAttribute("nonce",f.nc),o.setAttribute("data-rspack","@webexatech/plugin-collection-transfer/client-v2:"+n),o.src=e),p[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(s);var r=p[e];if(delete p[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},f.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.g.importScripts&&(s=f.g.location+"");var p,s,b=f.g.document;if(!s&&b&&(b.currentScript&&"SCRIPT"===b.currentScript.tagName.toUpperCase()&&(s=b.currentScript.src),!s)){var d=b.getElementsByTagName("script");if(d.length)for(var v=d.length-1;v>-1&&(!s||!/^http(s?):/.test(s));)s=d[v--].src}if(!s)throw Error("Automatic publicPath is not supported in this browser");f.p=s.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i={889:0},f.f.j=function(e,t){var n=f.o(i,e)?i[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=r);var o=f.p+f.u(e),c=Error();f.l(o,function(t){if(f.o(i,e)&&(0!==(n=i[e])&&(i[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",c.name="ChunkLoadError",c.type=r,c.request=o,n[1](c)}},"chunk-"+e,e)}},c=function(e,t){var n,r,o=t[0],c=t[1],a=t[2],u=0;if(o.some(function(e){return 0!==i[e]})){for(n in c)f.o(c,n)&&(f.m[n]=c[n]);a&&a(f)}for(e&&e(t);u<o.length;u++)r=o[u],f.o(i,r)&&i[r]&&i[r][0](),i[r]=0},(a=self.webpackChunk_webexatech_plugin_collection_transfer_client_v2=self.webpackChunk_webexatech_plugin_collection_transfer_client_v2||[]).forEach(c.bind(null,0)),a.push=c.bind(null,a.push.bind(a));var y={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var n=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/@webexatech/plugin-collection-transfer/dist/client-v2/")>=0&&(e=n.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/@webexatech/plugin-collection-transfer/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var c=window.location.pathname||"/",a=c.indexOf(i);e=a>=0?c.slice(0,a+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@webexatech/plugin-collection-transfer/dist/client-v2/"}f.p=e}(),!function(){f.r(y),f.d(y,{default:function(){return u}});var e=f(485),t=f(143);function n(e,t,n,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function r(e,t,n){return(r=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return r(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)})(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var u=function(e){var r;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function c(){var e,t;if(!(this instanceof c))throw TypeError("Cannot call a class as a function");return e=c,t=arguments,e=o(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,a()?Reflect.construct(e,t||[],o(this).constructor):e.apply(this,t))}return c.prototype=Object.create(e&&e.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),e&&i(c,e),r=[{key:"load",value:function(){var e;return(e=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:u(0)}),a(c,"throw",{value:u(1)}),a(c,"return",{value:u(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function u(a){return function(u){var l=[a,u];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(n){return e=this.t("Collection transfer",{ns:t.C}),this.pluginSettingsManager.addMenuItem({key:"collection-transfer",title:e,icon:"SwapOutlined",aclSnippet:"pm.collection-transfer"}),this.pluginSettingsManager.addPageTabItem({menuKey:"collection-transfer",key:"index",title:e,componentLoader:function(){return f.e("907").then(f.bind(f,598))}}),[2]})},function(){var t=this,r=arguments;return new Promise(function(o,i){var c=e.apply(t,r);function a(e){n(c,o,i,a,u,"next",e)}function u(e){n(c,o,i,a,u,"throw",e)}a(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(c.prototype,r),c}(c(e.Plugin))}(),y}()});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-i18next"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@ant-design/icons")):"function"==typeof define&&define.amd?define("@webexatech/plugin-collection-transfer/client-v2",["react-i18next","@nocobase/client-v2","react","antd","@ant-design/icons"],t):"object"==typeof exports?exports["@webexatech/plugin-collection-transfer/client-v2"]=t(require("react-i18next"),require("@nocobase/client-v2"),require("react"),require("antd"),require("@ant-design/icons")):e["@webexatech/plugin-collection-transfer/client-v2"]=t(e["react-i18next"],e["@nocobase/client-v2"],e.react,e.antd,e["@ant-design/icons"])}(self,function(e,t,n,r,o){return function(){"use strict";var i,c,a,u={143:function(e,t,n){n.d(t,{C:function(){return c},k:function(){return a}});var r=n(155),o=n(953);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var c=JSON.parse('{"UU":"@webexatech/plugin-collection-transfer"}').UU;function a(){var e=(0,o.useTranslation)([c,"client"],{nsMode:"fallback"}).t;return(0,r.useCallback)(function(t,n){var r,o;return e(t,(r=i({},n),o=o={interpolation:i({escapeValue:!1},null==n?void 0:n.interpolation)},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r))},[e])}},375:function(e){e.exports=o},485:function(e){e.exports=t},59:function(e){e.exports=r},155:function(e){e.exports=n},953:function(t){t.exports=e}},l={};function f(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return u[e](n,n.exports,f),n.exports}f.m=u,f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,{a:t}),t},f.d=function(e,t){for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.f={},f.e=function(e){return Promise.all(Object.keys(f.f).reduce(function(t,n){return f.f[n](e,t),t},[]))},f.u=function(e){return""+e+".b7c707602a2b4e6c.js"},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p={},f.l=function(e,t,n,r){if(p[e])return void p[e].push(t);if(void 0!==n)for(var o,i,c=document.getElementsByTagName("script"),a=0;a<c.length;a++){var u=c[a];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@webexatech/plugin-collection-transfer/client-v2:"+n){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,f.nc&&o.setAttribute("nonce",f.nc),o.setAttribute("data-rspack","@webexatech/plugin-collection-transfer/client-v2:"+n),o.src=e),p[e]=[t];var l=function(t,n){o.onerror=o.onload=null,clearTimeout(s);var r=p[e];if(delete p[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},f.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.g.importScripts&&(s=f.g.location+"");var p,s,b=f.g.document;if(!s&&b&&(b.currentScript&&"SCRIPT"===b.currentScript.tagName.toUpperCase()&&(s=b.currentScript.src),!s)){var d=b.getElementsByTagName("script");if(d.length)for(var v=d.length-1;v>-1&&(!s||!/^http(s?):/.test(s));)s=d[v--].src}if(!s)throw Error("Automatic publicPath is not supported in this browser");f.p=s.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i={889:0},f.f.j=function(e,t){var n=f.o(i,e)?i[e]:void 0;if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=r);var o=f.p+f.u(e),c=Error();f.l(o,function(t){if(f.o(i,e)&&(0!==(n=i[e])&&(i[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",c.name="ChunkLoadError",c.type=r,c.request=o,n[1](c)}},"chunk-"+e,e)}},c=function(e,t){var n,r,o=t[0],c=t[1],a=t[2],u=0;if(o.some(function(e){return 0!==i[e]})){for(n in c)f.o(c,n)&&(f.m[n]=c[n]);a&&a(f)}for(e&&e(t);u<o.length;u++)r=o[u],f.o(i,r)&&i[r]&&i[r][0](),i[r]=0},(a=self.webpackChunk_webexatech_plugin_collection_transfer_client_v2=self.webpackChunk_webexatech_plugin_collection_transfer_client_v2||[]).forEach(c.bind(null,0)),a.push=c.bind(null,a.push.bind(a));var y={};return!function(){var e="",t="u">typeof document?document.currentScript:null;if(t&&t.src){var n=t.src.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"");n.indexOf("/static/plugins/@webexatech/plugin-collection-transfer/dist/client-v2/")>=0&&(e=n.replace(/\/[^\/]+$/,"/"))}if(!e){var r=window.__webpack_public_path__||"";r&&("/"!==r.charAt(r.length-1)&&(r+="/"),e=r+"static/plugins/@webexatech/plugin-collection-transfer/dist/client-v2/")}if(!e){var o=window.__nocobase_modern_client_prefix__||"v",i="/"+(o=String(o).replace(/^\/+|\/+$/g,"")||"v")+"/";if(!(e=window.__nocobase_public_path__||"")&&window.location&&window.location.pathname){var c=window.location.pathname||"/",a=c.indexOf(i);e=a>=0?c.slice(0,a+1):"/"}e&&(e=e.replace(RegExp("/"+o+"/?$"),"/")),e||(e="/"),"/"!==e.charAt(e.length-1)&&(e+="/"),e+="static/plugins/@webexatech/plugin-collection-transfer/dist/client-v2/"}f.p=e}(),!function(){f.r(y),f.d(y,{default:function(){return u}});var e=f(485),t=f(143);function n(e,t,n,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){n(e);return}a.done?t(u):Promise.resolve(u).then(r,o)}function r(e,t,n){return(r=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return r(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)})(e)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(a=function(){return!!e})()}var u=function(e){var r;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function c(){var e,t;if(!(this instanceof c))throw TypeError("Cannot call a class as a function");return e=c,t=arguments,e=o(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,a()?Reflect.construct(e,t||[],o(this).constructor):e.apply(this,t))}return c.prototype=Object.create(e&&e.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),e&&i(c,e),r=[{key:"load",value:function(){var e;return(e=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:u(0)}),a(c,"throw",{value:u(1)}),a(c,"return",{value:u(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function u(a){return function(u){var l=[a,u];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(n){return e=this.t("Collection transfer",{ns:t.C}),this.pluginSettingsManager.addMenuItem({key:"collection-transfer",title:e,icon:"SwapOutlined",aclSnippet:"pm.collection-transfer"}),this.pluginSettingsManager.addPageTabItem({menuKey:"collection-transfer",key:"index",title:e,componentLoader:function(){return f.e("907").then(f.bind(f,598))}}),[2]})},function(){var t=this,r=arguments;return new Promise(function(o,i){var c=e.apply(t,r);function a(e){n(c,o,i,a,u,"next",e)}function u(e){n(c,o,i,a,u,"throw",e)}a(void 0)})}).call(this)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(c.prototype,r),c}(c(e.Plugin))}(),y}()});
@@ -8,17 +8,17 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.2.50",
11
+ "@nocobase/client": "2.3.0-beta.26",
12
12
  "react": "18.2.0",
13
13
  "@ant-design/icons": "5.6.1",
14
14
  "antd": "5.24.2",
15
15
  "i18next": "22.5.1",
16
16
  "react-i18next": "11.18.6",
17
- "@nocobase/client-v2": "2.2.50",
18
- "@nocobase/database": "2.2.50",
19
- "@nocobase/server": "2.2.50",
17
+ "@nocobase/client-v2": "2.3.0-beta.26",
18
+ "@nocobase/database": "2.3.0-beta.26",
19
+ "@nocobase/server": "2.3.0-beta.26",
20
20
  "lodash": "4.18.1",
21
21
  "sequelize": "6.35.2",
22
- "@nocobase/utils": "2.2.50",
23
- "@nocobase/actions": "2.2.50"
22
+ "@nocobase/utils": "2.3.0-beta.26",
23
+ "@nocobase/actions": "2.3.0-beta.26"
24
24
  };
@@ -1,70 +1,70 @@
1
- {
2
- "\"{{collection}}\" contains an expression that is not allowed in a package: {{detail}}": "\"{{collection}}\" contains an expression that is not allowed in a package: {{detail}}",
3
- "\"{{collection}}\" here lacks columns from the file ({{detail}}), so its data cannot be added": "\"{{collection}}\" here lacks columns from the file ({{detail}}), so its data cannot be added",
4
- "\"{{collection}}\" would change something outside the package: {{detail}}": "\"{{collection}}\" would change something outside the package: {{detail}}",
5
- "A database table for \"{{collection}}\" already exists in this environment": "A database table for \"{{collection}}\" already exists in this environment",
6
- "Added because they are needed: {{names}}": "Added because they are needed: {{names}}",
7
- "Already exists here": "Already exists here",
8
- "Cancel": "Cancel",
9
- "Checking package…": "Checking package…",
10
- "Choose what to do with the existing collection \"{{collection}}\"": "Choose what to do with the existing collection \"{{collection}}\"",
11
- "Click or drag a collection package (.zip) here": "Click or drag a collection package (.zip) here",
12
- "Collection": "Collection",
13
- "Collection \"{{collection}}\" already exists in this environment": "Collection \"{{collection}}\" already exists in this environment",
14
- "Collection \"{{collection}}\" is referenced by a relation but does not exist in this environment": "Collection \"{{collection}}\" is referenced by a relation but does not exist in this environment",
15
- "Collection \"{{collection}}\" uses template \"{{detail}}\", which cannot be transferred yet": "Collection \"{{collection}}\" uses template \"{{detail}}\", which cannot be transferred yet",
16
- "Collection name \"{{collection}}\" is not valid": "Collection name \"{{collection}}\" is not valid",
17
- "Collection transfer": "Collection transfer",
18
- "Enabled in the source environment but not here: {{names}}": "Enabled in the source environment but not here: {{names}}",
19
- "Export": "Export",
20
- "Exported at": "Exported at",
21
- "Exported {{count}} collection(s)": "Exported {{count}} collection(s)",
22
- "Field \"{{collection}}.{{field}}\" uses the \"{{detail}}\" field kind, which is not available here": "Field \"{{collection}}.{{field}}\" uses the \"{{detail}}\" field kind, which is not available here",
23
- "Field \"{{collection}}.{{field}}\" uses type \"{{detail}}\", which is not available here": "Field \"{{collection}}.{{field}}\" uses type \"{{detail}}\", which is not available here",
24
- "Fields": "Fields",
25
- "Import": "Import",
26
- "Imported {{count}} collection(s)": "Imported {{count}} collection(s)",
27
- "Include data": "Include data",
28
- "Includes data": "Includes data",
29
- "Junction table": "Junction table",
30
- "Missing columns here: {{columns}}": "Missing columns here: {{columns}}",
31
- "Must already exist in the target environment: {{names}}": "Must already exist in the target environment: {{names}}",
32
- "Name": "Name",
33
- "Name \"{{detail}}\" in \"{{collection}}\" is too long for the database": "Name \"{{detail}}\" in \"{{collection}}\" is too long for the database",
34
- "No": "No",
35
- "No collections to export": "No collections to export",
36
- "No rows were imported.": "No rows were imported.",
37
- "Not supported": "Not supported",
38
- "Nothing is changed until you confirm the import.": "Nothing is changed until you confirm the import.",
39
- "Only general collections can be transferred in this version": "Only general collections can be transferred in this version",
40
- "Overridden: {{names}}": "Overridden: {{names}}",
41
- "Override collection and data": "Override collection and data",
42
- "Override collection, without data": "Override collection, without data",
43
- "Overriding also removes these fields from other collections: {{fields}}": "Overriding also removes these fields from other collections: {{fields}}",
44
- "Preview": "Preview",
45
- "Ready to import. All collections are created in a single step and rolled back on error.": "Ready to import. All collections are created in a single step and rolled back on error.",
46
- "Replace and import": "Replace and import",
47
- "Replace existing collections?": "Replace existing collections?",
48
- "Requires": "Requires",
49
- "Rows": "Rows",
50
- "Select at least one collection": "Select at least one collection",
51
- "Select the collections to export. The file can be imported into another environment.": "Select the collections to export. The file can be imported into another environment.",
52
- "Skip collection and data": "Skip collection and data",
53
- "Skip collection, import data": "Skip collection, import data",
54
- "Skipped: {{names}}": "Skipped: {{names}}",
55
- "Source version": "Source version",
56
- "Template": "Template",
57
- "The existing data of these collections will be permanently deleted:": "The existing data of these collections will be permanently deleted:",
58
- "The file contains no data": "The file contains no data",
59
- "The package format version {{detail}} is not supported": "The package format version {{detail}} is not supported",
60
- "The package is incomplete or damaged ({{detail}})": "The package is incomplete or damaged ({{detail}})",
61
- "The package was exported from a different database type ({{detail}})": "The package was exported from a different database type ({{detail}})",
62
- "This package cannot be imported here": "This package cannot be imported here",
63
- "Title": "Title",
64
- "Upload a package file": "Upload a package file",
65
- "What to do": "What to do",
66
- "What to do with \"{{name}}\"": "What to do with \"{{name}}\"",
67
- "Yes": "Yes",
68
- "{{name}}: {{count}} row(s)": "{{name}}: {{count}} row(s)",
69
- "\"{{collection}}\" is a system or plugin collection here and cannot be replaced by an import": "\"{{collection}}\" is a system or plugin collection here and cannot be replaced by an import"
70
- }
1
+ {
2
+ "\"{{collection}}\" contains an expression that is not allowed in a package: {{detail}}": "\"{{collection}}\" contains an expression that is not allowed in a package: {{detail}}",
3
+ "\"{{collection}}\" here lacks columns from the file ({{detail}}), so its data cannot be added": "\"{{collection}}\" here lacks columns from the file ({{detail}}), so its data cannot be added",
4
+ "\"{{collection}}\" would change something outside the package: {{detail}}": "\"{{collection}}\" would change something outside the package: {{detail}}",
5
+ "A database table for \"{{collection}}\" already exists in this environment": "A database table for \"{{collection}}\" already exists in this environment",
6
+ "Added because they are needed: {{names}}": "Added because they are needed: {{names}}",
7
+ "Already exists here": "Already exists here",
8
+ "Cancel": "Cancel",
9
+ "Checking package…": "Checking package…",
10
+ "Choose what to do with the existing collection \"{{collection}}\"": "Choose what to do with the existing collection \"{{collection}}\"",
11
+ "Click or drag a collection package (.zip) here": "Click or drag a collection package (.zip) here",
12
+ "Collection": "Collection",
13
+ "Collection \"{{collection}}\" already exists in this environment": "Collection \"{{collection}}\" already exists in this environment",
14
+ "Collection \"{{collection}}\" is referenced by a relation but does not exist in this environment": "Collection \"{{collection}}\" is referenced by a relation but does not exist in this environment",
15
+ "Collection \"{{collection}}\" uses template \"{{detail}}\", which cannot be transferred yet": "Collection \"{{collection}}\" uses template \"{{detail}}\", which cannot be transferred yet",
16
+ "Collection name \"{{collection}}\" is not valid": "Collection name \"{{collection}}\" is not valid",
17
+ "Collection transfer": "Collection transfer",
18
+ "Enabled in the source environment but not here: {{names}}": "Enabled in the source environment but not here: {{names}}",
19
+ "Export": "Export",
20
+ "Exported at": "Exported at",
21
+ "Exported {{count}} collection(s)": "Exported {{count}} collection(s)",
22
+ "Field \"{{collection}}.{{field}}\" uses the \"{{detail}}\" field kind, which is not available here": "Field \"{{collection}}.{{field}}\" uses the \"{{detail}}\" field kind, which is not available here",
23
+ "Field \"{{collection}}.{{field}}\" uses type \"{{detail}}\", which is not available here": "Field \"{{collection}}.{{field}}\" uses type \"{{detail}}\", which is not available here",
24
+ "Fields": "Fields",
25
+ "Import": "Import",
26
+ "Imported {{count}} collection(s)": "Imported {{count}} collection(s)",
27
+ "Include data": "Include data",
28
+ "Includes data": "Includes data",
29
+ "Junction table": "Junction table",
30
+ "Missing columns here: {{columns}}": "Missing columns here: {{columns}}",
31
+ "Must already exist in the target environment: {{names}}": "Must already exist in the target environment: {{names}}",
32
+ "Name": "Name",
33
+ "Name \"{{detail}}\" in \"{{collection}}\" is too long for the database": "Name \"{{detail}}\" in \"{{collection}}\" is too long for the database",
34
+ "No": "No",
35
+ "No collections to export": "No collections to export",
36
+ "No rows were imported.": "No rows were imported.",
37
+ "Not supported": "Not supported",
38
+ "Nothing is changed until you confirm the import.": "Nothing is changed until you confirm the import.",
39
+ "Only general collections can be transferred in this version": "Only general collections can be transferred in this version",
40
+ "Overridden: {{names}}": "Overridden: {{names}}",
41
+ "Override collection and data": "Override collection and data",
42
+ "Override collection, without data": "Override collection, without data",
43
+ "Overriding also removes these fields from other collections: {{fields}}": "Overriding also removes these fields from other collections: {{fields}}",
44
+ "Preview": "Preview",
45
+ "Ready to import. All collections are created in a single step and rolled back on error.": "Ready to import. All collections are created in a single step and rolled back on error.",
46
+ "Replace and import": "Replace and import",
47
+ "Replace existing collections?": "Replace existing collections?",
48
+ "Requires": "Requires",
49
+ "Rows": "Rows",
50
+ "Select at least one collection": "Select at least one collection",
51
+ "Select the collections to export. The file can be imported into another environment.": "Select the collections to export. The file can be imported into another environment.",
52
+ "Skip collection and data": "Skip collection and data",
53
+ "Skip collection, import data": "Skip collection, import data",
54
+ "Skipped: {{names}}": "Skipped: {{names}}",
55
+ "Source version": "Source version",
56
+ "Template": "Template",
57
+ "The existing data of these collections will be permanently deleted:": "The existing data of these collections will be permanently deleted:",
58
+ "The file contains no data": "The file contains no data",
59
+ "The package format version {{detail}} is not supported": "The package format version {{detail}} is not supported",
60
+ "The package is incomplete or damaged ({{detail}})": "The package is incomplete or damaged ({{detail}})",
61
+ "The package was exported from a different database type ({{detail}})": "The package was exported from a different database type ({{detail}})",
62
+ "This package cannot be imported here": "This package cannot be imported here",
63
+ "Title": "Title",
64
+ "Upload a package file": "Upload a package file",
65
+ "What to do": "What to do",
66
+ "What to do with \"{{name}}\"": "What to do with \"{{name}}\"",
67
+ "Yes": "Yes",
68
+ "{{name}}: {{count}} row(s)": "{{name}}: {{count}} row(s)",
69
+ "\"{{collection}}\" is a system or plugin collection here and cannot be replaced by an import": "\"{{collection}}\" is a system or plugin collection here and cannot be replaced by an import"
70
+ }
@@ -1,70 +1,70 @@
1
- {
2
- "\"{{collection}}\" contains an expression that is not allowed in a package: {{detail}}": "“{{collection}}”包含迁移文件中不允许的表达式:{{detail}}",
3
- "\"{{collection}}\" here lacks columns from the file ({{detail}}), so its data cannot be added": "当前环境中的“{{collection}}”缺少文件中的字段({{detail}}),无法添加其数据",
4
- "\"{{collection}}\" would change something outside the package: {{detail}}": "“{{collection}}”会修改迁移文件之外的内容:{{detail}}",
5
- "A database table for \"{{collection}}\" already exists in this environment": "当前环境中已存在“{{collection}}”对应的数据库表",
6
- "Added because they are needed: {{names}}": "因依赖关系自动加入:{{names}}",
7
- "Already exists here": "当前环境中已存在",
8
- "Cancel": "取消",
9
- "Checking package…": "正在检查文件…",
10
- "Choose what to do with the existing collection \"{{collection}}\"": "请选择如何处理已存在的数据表“{{collection}}”",
11
- "Click or drag a collection package (.zip) here": "点击或拖拽数据表迁移文件(.zip)到此处",
12
- "Collection": "数据表",
13
- "Collection \"{{collection}}\" already exists in this environment": "数据表“{{collection}}”在当前环境中已存在",
14
- "Collection \"{{collection}}\" is referenced by a relation but does not exist in this environment": "数据表“{{collection}}”被关系字段引用,但在当前环境中不存在",
15
- "Collection \"{{collection}}\" uses template \"{{detail}}\", which cannot be transferred yet": "数据表“{{collection}}”使用的模板“{{detail}}”暂不支持迁移",
16
- "Collection name \"{{collection}}\" is not valid": "数据表名称“{{collection}}”无效",
17
- "Collection transfer": "数据表迁移",
18
- "Enabled in the source environment but not here: {{names}}": "在来源环境中已启用、但当前环境未启用:{{names}}",
19
- "Export": "导出",
20
- "Exported at": "导出时间",
21
- "Exported {{count}} collection(s)": "已导出 {{count}} 个数据表",
22
- "Field \"{{collection}}.{{field}}\" uses the \"{{detail}}\" field kind, which is not available here": "字段“{{collection}}.{{field}}”使用的字段类型“{{detail}}”在当前环境中不可用",
23
- "Field \"{{collection}}.{{field}}\" uses type \"{{detail}}\", which is not available here": "字段“{{collection}}.{{field}}”使用的类型“{{detail}}”在当前环境中不可用",
24
- "Fields": "字段",
25
- "Import": "导入",
26
- "Imported {{count}} collection(s)": "已导入 {{count}} 个数据表",
27
- "Include data": "包含数据",
28
- "Includes data": "包含数据",
29
- "Junction table": "中间表",
30
- "Missing columns here: {{columns}}": "当前环境缺少字段:{{columns}}",
31
- "Must already exist in the target environment: {{names}}": "目标环境中必须已存在:{{names}}",
32
- "Name": "名称",
33
- "Name \"{{detail}}\" in \"{{collection}}\" is too long for the database": "“{{collection}}”中的名称“{{detail}}”超出数据库长度限制",
34
- "No": "否",
35
- "No collections to export": "没有可导出的数据表",
36
- "No rows were imported.": "未导入任何数据行。",
37
- "Not supported": "不支持",
38
- "Nothing is changed until you confirm the import.": "确认导入前不会做任何更改。",
39
- "Only general collections can be transferred in this version": "当前版本仅支持迁移普通数据表",
40
- "Overridden: {{names}}": "已覆盖:{{names}}",
41
- "Override collection and data": "覆盖数据表和数据",
42
- "Override collection, without data": "覆盖数据表,不含数据",
43
- "Overriding also removes these fields from other collections: {{fields}}": "覆盖还会删除其他数据表中的这些字段:{{fields}}",
44
- "Preview": "预览",
45
- "Ready to import. All collections are created in a single step and rolled back on error.": "可以导入。所有数据表将在同一事务中创建,出错时全部回滚。",
46
- "Replace and import": "替换并导入",
47
- "Replace existing collections?": "替换已存在的数据表?",
48
- "Requires": "依赖",
49
- "Rows": "行数",
50
- "Select at least one collection": "请至少选择一个数据表",
51
- "Select the collections to export. The file can be imported into another environment.": "选择要导出的数据表,导出的文件可以导入到其他环境。",
52
- "Skip collection and data": "跳过数据表和数据",
53
- "Skip collection, import data": "跳过数据表,导入数据",
54
- "Skipped: {{names}}": "已跳过:{{names}}",
55
- "Source version": "来源版本",
56
- "Template": "模板",
57
- "The existing data of these collections will be permanently deleted:": "以下数据表的现有数据将被永久删除:",
58
- "The file contains no data": "文件中不包含数据",
59
- "The package format version {{detail}} is not supported": "不支持该文件格式版本 {{detail}}",
60
- "The package is incomplete or damaged ({{detail}})": "文件不完整或已损坏({{detail}})",
61
- "The package was exported from a different database type ({{detail}})": "该文件导出自不同类型的数据库({{detail}})",
62
- "This package cannot be imported here": "该文件无法导入到当前环境",
63
- "Title": "标题",
64
- "Upload a package file": "请上传迁移文件",
65
- "What to do": "处理方式",
66
- "What to do with \"{{name}}\"": "如何处理“{{name}}”",
67
- "Yes": "是",
68
- "{{name}}: {{count}} row(s)": "{{name}}:{{count}} 行",
69
- "\"{{collection}}\" is a system or plugin collection here and cannot be replaced by an import": "“{{collection}}”在当前环境中是系统或插件数据表,不能通过导入替换"
70
- }
1
+ {
2
+ "\"{{collection}}\" contains an expression that is not allowed in a package: {{detail}}": "“{{collection}}”包含迁移文件中不允许的表达式:{{detail}}",
3
+ "\"{{collection}}\" here lacks columns from the file ({{detail}}), so its data cannot be added": "当前环境中的“{{collection}}”缺少文件中的字段({{detail}}),无法添加其数据",
4
+ "\"{{collection}}\" would change something outside the package: {{detail}}": "“{{collection}}”会修改迁移文件之外的内容:{{detail}}",
5
+ "A database table for \"{{collection}}\" already exists in this environment": "当前环境中已存在“{{collection}}”对应的数据库表",
6
+ "Added because they are needed: {{names}}": "因依赖关系自动加入:{{names}}",
7
+ "Already exists here": "当前环境中已存在",
8
+ "Cancel": "取消",
9
+ "Checking package…": "正在检查文件…",
10
+ "Choose what to do with the existing collection \"{{collection}}\"": "请选择如何处理已存在的数据表“{{collection}}”",
11
+ "Click or drag a collection package (.zip) here": "点击或拖拽数据表迁移文件(.zip)到此处",
12
+ "Collection": "数据表",
13
+ "Collection \"{{collection}}\" already exists in this environment": "数据表“{{collection}}”在当前环境中已存在",
14
+ "Collection \"{{collection}}\" is referenced by a relation but does not exist in this environment": "数据表“{{collection}}”被关系字段引用,但在当前环境中不存在",
15
+ "Collection \"{{collection}}\" uses template \"{{detail}}\", which cannot be transferred yet": "数据表“{{collection}}”使用的模板“{{detail}}”暂不支持迁移",
16
+ "Collection name \"{{collection}}\" is not valid": "数据表名称“{{collection}}”无效",
17
+ "Collection transfer": "数据表迁移",
18
+ "Enabled in the source environment but not here: {{names}}": "在来源环境中已启用、但当前环境未启用:{{names}}",
19
+ "Export": "导出",
20
+ "Exported at": "导出时间",
21
+ "Exported {{count}} collection(s)": "已导出 {{count}} 个数据表",
22
+ "Field \"{{collection}}.{{field}}\" uses the \"{{detail}}\" field kind, which is not available here": "字段“{{collection}}.{{field}}”使用的字段类型“{{detail}}”在当前环境中不可用",
23
+ "Field \"{{collection}}.{{field}}\" uses type \"{{detail}}\", which is not available here": "字段“{{collection}}.{{field}}”使用的类型“{{detail}}”在当前环境中不可用",
24
+ "Fields": "字段",
25
+ "Import": "导入",
26
+ "Imported {{count}} collection(s)": "已导入 {{count}} 个数据表",
27
+ "Include data": "包含数据",
28
+ "Includes data": "包含数据",
29
+ "Junction table": "中间表",
30
+ "Missing columns here: {{columns}}": "当前环境缺少字段:{{columns}}",
31
+ "Must already exist in the target environment: {{names}}": "目标环境中必须已存在:{{names}}",
32
+ "Name": "名称",
33
+ "Name \"{{detail}}\" in \"{{collection}}\" is too long for the database": "“{{collection}}”中的名称“{{detail}}”超出数据库长度限制",
34
+ "No": "否",
35
+ "No collections to export": "没有可导出的数据表",
36
+ "No rows were imported.": "未导入任何数据行。",
37
+ "Not supported": "不支持",
38
+ "Nothing is changed until you confirm the import.": "确认导入前不会做任何更改。",
39
+ "Only general collections can be transferred in this version": "当前版本仅支持迁移普通数据表",
40
+ "Overridden: {{names}}": "已覆盖:{{names}}",
41
+ "Override collection and data": "覆盖数据表和数据",
42
+ "Override collection, without data": "覆盖数据表,不含数据",
43
+ "Overriding also removes these fields from other collections: {{fields}}": "覆盖还会删除其他数据表中的这些字段:{{fields}}",
44
+ "Preview": "预览",
45
+ "Ready to import. All collections are created in a single step and rolled back on error.": "可以导入。所有数据表将在同一事务中创建,出错时全部回滚。",
46
+ "Replace and import": "替换并导入",
47
+ "Replace existing collections?": "替换已存在的数据表?",
48
+ "Requires": "依赖",
49
+ "Rows": "行数",
50
+ "Select at least one collection": "请至少选择一个数据表",
51
+ "Select the collections to export. The file can be imported into another environment.": "选择要导出的数据表,导出的文件可以导入到其他环境。",
52
+ "Skip collection and data": "跳过数据表和数据",
53
+ "Skip collection, import data": "跳过数据表,导入数据",
54
+ "Skipped: {{names}}": "已跳过:{{names}}",
55
+ "Source version": "来源版本",
56
+ "Template": "模板",
57
+ "The existing data of these collections will be permanently deleted:": "以下数据表的现有数据将被永久删除:",
58
+ "The file contains no data": "文件中不包含数据",
59
+ "The package format version {{detail}} is not supported": "不支持该文件格式版本 {{detail}}",
60
+ "The package is incomplete or damaged ({{detail}})": "文件不完整或已损坏({{detail}})",
61
+ "The package was exported from a different database type ({{detail}})": "该文件导出自不同类型的数据库({{detail}})",
62
+ "This package cannot be imported here": "该文件无法导入到当前环境",
63
+ "Title": "标题",
64
+ "Upload a package file": "请上传迁移文件",
65
+ "What to do": "处理方式",
66
+ "What to do with \"{{name}}\"": "如何处理“{{name}}”",
67
+ "Yes": "是",
68
+ "{{name}}: {{count}} row(s)": "{{name}}:{{count}} 行",
69
+ "\"{{collection}}\" is a system or plugin collection here and cannot be replaced by an import": "“{{collection}}”在当前环境中是系统或插件数据表,不能通过导入替换"
70
+ }
@@ -1 +1 @@
1
- {"name":"archiver","version":"5.3.2","description":"a streaming interface for archive generation","homepage":"https://github.com/archiverjs/node-archiver","author":{"name":"Chris Talkington","url":"http://christalkington.com/"},"repository":{"type":"git","url":"https://github.com/archiverjs/node-archiver.git"},"bugs":{"url":"https://github.com/archiverjs/node-archiver/issues"},"license":"MIT","main":"index.js","files":["index.js","lib"],"engines":{"node":">= 10"},"scripts":{"test":"mocha --reporter dot","bench":"node benchmark/simple/pack-zip.js"},"dependencies":{"archiver-utils":"^2.1.0","async":"^3.2.4","buffer-crc32":"^0.2.1","readable-stream":"^3.6.0","readdir-glob":"^1.1.2","tar-stream":"^2.2.0","zip-stream":"^4.1.0"},"devDependencies":{"archiver-jsdoc-theme":"^1.1.3","chai":"^4.3.7","jsdoc":"^3.6.4","mkdirp":"^2.1.5","mocha":"^9.0.2","rimraf":"^4.3.1","stream-bench":"^0.1.2","tar":"^6.1.13","yauzl":"^2.9.0"},"keywords":["archive","archiver","stream","zip","tar"],"publishConfig":{"registry":"https://registry.npmjs.org/"},"_lastModified":"2026-11-22T13:16:02.487Z"}
1
+ {"name":"archiver","version":"5.3.2","description":"a streaming interface for archive generation","homepage":"https://github.com/archiverjs/node-archiver","author":{"name":"Chris Talkington","url":"http://christalkington.com/"},"repository":{"type":"git","url":"https://github.com/archiverjs/node-archiver.git"},"bugs":{"url":"https://github.com/archiverjs/node-archiver/issues"},"license":"MIT","main":"index.js","files":["index.js","lib"],"engines":{"node":">= 10"},"scripts":{"test":"mocha --reporter dot","bench":"node benchmark/simple/pack-zip.js"},"dependencies":{"archiver-utils":"^2.1.0","async":"^3.2.4","buffer-crc32":"^0.2.1","readable-stream":"^3.6.0","readdir-glob":"^1.1.2","tar-stream":"^2.2.0","zip-stream":"^4.1.0"},"devDependencies":{"archiver-jsdoc-theme":"^1.1.3","chai":"^4.3.7","jsdoc":"^3.6.4","mkdirp":"^2.1.5","mocha":"^9.0.2","rimraf":"^4.3.1","stream-bench":"^0.1.2","tar":"^6.1.13","yauzl":"^2.9.0"},"keywords":["archive","archiver","stream","zip","tar"],"publishConfig":{"registry":"https://registry.npmjs.org/"},"_lastModified":"2026-11-22T14:51:28.505Z"}
@@ -1 +1 @@
1
- {"name":"yauzl","version":"3.3.0","description":"yet another unzip library for node","engines":{"node":">=12"},"main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/thejoshwolfe/yauzl.git"},"keywords":["unzip","zip","stream","archive","file"],"author":"Josh Wolfe <thejoshwolfe@gmail.com>","license":"MIT","bugs":{"url":"https://github.com/thejoshwolfe/yauzl/issues"},"homepage":"https://github.com/thejoshwolfe/yauzl","dependencies":{"buffer-crc32":"~0.2.3","pend":"~1.2.0"},"devDependencies":{"bl":"^6.0.11"},"files":["fd-slicer.js","index.js"],"_lastModified":"2026-11-22T13:16:02.566Z"}
1
+ {"name":"yauzl","version":"3.3.0","description":"yet another unzip library for node","engines":{"node":">=12"},"main":"index.js","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git+https://github.com/thejoshwolfe/yauzl.git"},"keywords":["unzip","zip","stream","archive","file"],"author":"Josh Wolfe <thejoshwolfe@gmail.com>","license":"MIT","bugs":{"url":"https://github.com/thejoshwolfe/yauzl/issues"},"homepage":"https://github.com/thejoshwolfe/yauzl","dependencies":{"buffer-crc32":"~0.2.3","pend":"~1.2.0"},"devDependencies":{"bl":"^6.0.11"},"files":["fd-slicer.js","index.js"],"_lastModified":"2026-11-22T14:51:28.579Z"}
@@ -6,6 +6,8 @@ declare const _default: {
6
6
  actions: {
7
7
  listCollections(ctx: Context, next: Next): Promise<void>;
8
8
  export(ctx: Context, next: Next): Promise<void>;
9
+ /** Streams a file prepared by `export` once, then deletes it. */
10
+ download(ctx: Context, next: Next): Promise<void>;
9
11
  /** Multipart upload of a package; returns what would be created and any blocking problems. No writes. */
10
12
  preview(ctx: Context, next: Next): Promise<void>;
11
13
  import(ctx: Context, next: Next): Promise<void>;